From: Michael Adam Date: Mon, 22 Dec 2014 10:30:21 +0000 (+0100) Subject: wafsamba: remove commented out code. X-Git-Tag: samba-4.2.0rc5~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aada20e0c0659e3bc556fabbae203eaddacba1b3;p=thirdparty%2Fsamba.git wafsamba: remove commented out code. This code has only ever been there as commented out... Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Michael Adam Signed-off-by: Stefan Metzmacher (cherry picked from commit 9f2979a1a42f4714bdc49d09e4b5094333409834) --- diff --git a/buildtools/wafsamba/samba_optimisation.py b/buildtools/wafsamba/samba_optimisation.py index 8bd4dd617ee..5def5803804 100644 --- a/buildtools/wafsamba/samba_optimisation.py +++ b/buildtools/wafsamba/samba_optimisation.py @@ -124,33 +124,6 @@ def hash_constraints(self): return sum Task.TaskBase.hash_constraints = hash_constraints - -# import cc -# from TaskGen import extension -# import Utils - -# @extension(cc.EXT_CC) -# def c_hook(self, node): -# task = self.create_task('cc', node, node.change_ext('.o')) -# try: -# self.compiled_tasks.append(task) -# except AttributeError: -# raise Utils.WafError('Have you forgotten to set the feature "cc" on %s?' % str(self)) - -# bld = self.bld -# try: -# dc = bld.dc -# except AttributeError: -# dc = bld.dc = {} - -# if task.outputs[0].id in dc: -# raise Utils.WafError('Samba, you are doing it wrong %r %s %s' % (task.outputs, task.generator, dc[task.outputs[0].id].generator)) -# else: -# dc[task.outputs[0].id] = task - -# return task - - def hash_env_vars(self, env, vars_lst): idx = str(id(env)) + str(vars_lst) try: