Removed some dead code

This commit is contained in:
Thomas Nagy 2016-05-14 00:16:29 +02:00
parent 9a5b0e41ac
commit 12c7609802
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 3 additions and 13 deletions

View File

@ -263,7 +263,7 @@ class BuildContext(Context.Context):
Logs.info("Waf: Leaving directory `%s'" % self.variant_dir)
try:
self.producer.bld = None
self.producer = None
del self.producer
except AttributeError:
pass
self.post_build()

View File

@ -54,8 +54,8 @@ except ImportError:
class threading(object):
"""
A fake threading class for platforms lacking the threading module.
Use ``waf -j1`` on those platforms
A fake threading class for platforms lacking the threading module.
Use ``waf -j1`` on those platforms
"""
pass
class Lock(object):
@ -65,16 +65,6 @@ except ImportError:
def release(self):
pass
threading.Lock = threading.Thread = Lock
else:
run_old = threading.Thread.run
def run(*args, **kwargs):
try:
run_old(*args, **kwargs)
except (KeyboardInterrupt, SystemExit):
raise
except Exception:
sys.excepthook(*sys.exc_info())
threading.Thread.run = run
SIG_NIL = 'SIG_NIL_SIG_NIL_'.encode()
"""Arbitrary null value for hashes. Modify this value according to the hash function in use"""