diff options
author | Thomas Nagy <tnagy@waf.io> | 2015-11-14 15:23:27 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-11-19 13:10:53 +0100 |
commit | 5036c6e7447b7ad53886c759a7a3f5c29ae57779 (patch) | |
tree | aa180f6353019c877e35281c18a021ef23c30708 /buildtools | |
parent | 155eeac5ac9db6742b51ba9da57ef6eb0a796aed (diff) | |
download | samba-5036c6e7447b7ad53886c759a7a3f5c29ae57779.tar.gz |
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 <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
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_deps.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index 9e5eab728fc..6976a9a81d0 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) |