From 1e09d2d4624d70a218e95112e8971d17f9343e3a Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 27 Jun 2005 10:21:11 +0000 Subject: [PATCH] Remove unused rule 'basic-target.sources'. [SVN r29801] --- v2/build/targets.jam | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/v2/build/targets.jam b/v2/build/targets.jam index 9a5e8bcb9..6a0bee59b 100644 --- a/v2/build/targets.jam +++ b/v2/build/targets.jam @@ -798,8 +798,8 @@ class file-reference : abstract-target # Returns true if the referred file really exists; rule exists ( ) { - location ; - return $(self.file-path) ; + location ; + return $(self.file-path) ; } # Returns the location of target. Needed by 'testing.jam' @@ -807,9 +807,9 @@ class file-reference : abstract-target { if ! $(self.file-location) { - local source-location = [ $(self.project).get source-location ] ; + local source-location = [ $(self.project).get source-location ] ; - for local src-dir in $(source-location) + for local src-dir in $(source-location) { if ! $(self.file-location) { @@ -1012,20 +1012,6 @@ class basic-target : abstract-target } } - # Returns the list of abstract-targets which are used as sources. - # The extra properties specified for sources are not represented. - rule sources ( ) - { - if ! $(self.source-targets) { - for local s in $(self.sources) - { - self.source-targets += - [ targets.resolve-reference $(s) : $(self.project) ] ; - } - } - return $(self.source-targets) ; - } - rule requirements ( ) { return $(self.requirements) ;