build:wafsamba: remove check_orphaned_targets
authorThomas Nagy <tnagy@waf.io>
Sat, 14 Nov 2015 14:23:27 +0000 (15:23 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 19 Nov 2015 12:10:53 +0000 (13:10 +0100)
The function check_orphaned_targets is not used and has
no specification, so it can be removed safely.

Signed-off-by: Thomas Nagy <tnagy@waf.io>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Nov 19 13:10:53 CET 2015 on sn-devel-104

buildtools/wafsamba/samba_deps.py

index 9e5eab728fc9e43c9116d293ec75f066684710de..6976a9a81d02eb67c24b4931d821b43dc1bedaa0 100644 (file)
@@ -302,23 +302,6 @@ def check_duplicate_sources(bld, tgt_list):
 
     return True
 
-
-def check_orphaned_targets(bld, tgt_list):
-    '''check if any build targets are orphaned'''
-
-    target_dict = LOCAL_CACHE(bld, 'TARGET_TYPE')
-
-    debug('deps: checking for orphaned targets')
-
-    for t in tgt_list:
-        if getattr(t, 'samba_used', False):
-            continue
-        type = target_dict[t.sname]
-        if not type in ['BINARY', 'LIBRARY', 'MODULE', 'ET', 'PYTHON']:
-            if re.search('^PIDL_', t.sname) is None:
-                Logs.warn("Target %s of type %s is unused by any other target" % (t.sname, type))
-
-
 def check_group_ordering(bld, tgt_list):
     '''see if we have any dependencies that violate the group ordering
 
@@ -1151,8 +1134,6 @@ def check_project_rules(bld):
 
     debug('deps: project rules stage1 completed')
 
-    #check_orphaned_targets(bld, tgt_list)
-
     if not check_duplicate_sources(bld, tgt_list):
         Logs.error("Duplicate sources present - aborting")
         sys.exit(1)