From e133e9604a5a5858e83ccb58b68caeed02ec8261 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 14 Nov 2015 15:23:27 +0100 Subject: [PATCH] build:wafsamba: remove check_orphaned_targets The function check_orphaned_targets is not used and has no specification, so it can be removed safely. Signed-off-by: Thomas Nagy --- buildtools/wafsamba/samba_deps.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index 9e5eab7..6976a9a 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -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)