[Git][NTPsec/ntpsec][master] Clean up unused module import and variables assigned to, but never used.

Matt Selsky gitlab at mg.gitlab.com
Fri Dec 30 07:00:26 UTC 2016


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
17bebd0e by Matt Selsky at 2016-12-30T01:55:35-05:00
Clean up unused module import and variables assigned to, but never used.

Reported via pyflakes:
libparse/wscript:26: local variable 'srcnode' is assigned to but never used
ntpfrob/wscript:2: local variable 'srcnode' is assigned to but never used
tests/wscript:3: local variable 'bldnode' is assigned to but never used
wafhelpers/test.py:8: local variable 'lst' is assigned to but never used
wafhelpers/waf.py:3: 'waflib.Task.Task' imported but unused

- - - - -


5 changed files:

- libparse/wscript
- ntpfrob/wscript
- tests/wscript
- wafhelpers/test.py
- wafhelpers/waf.py


Changes:

=====================================
libparse/wscript
=====================================
--- a/libparse/wscript
+++ b/libparse/wscript
@@ -23,8 +23,6 @@ def build(ctx):
 		"trim_info.c",
 	]
 
-	srcnode = ctx.srcnode.abspath()
-
 	ctx(
 		target		= "parse",
 		features	= "c cstlib bld_include src_include libisc_include",


=====================================
ntpfrob/wscript
=====================================
--- a/ntpfrob/wscript
+++ b/ntpfrob/wscript
@@ -1,5 +1,4 @@
 def build(ctx):
-	srcnode = ctx.srcnode.abspath()
 	bldnode = ctx.bldnode.abspath()
 
 	frob_sources = ['main.c', 'bumpclock.c', 'jitter.c', 'precision.c',


=====================================
tests/wscript
=====================================
--- a/tests/wscript
+++ b/tests/wscript
@@ -1,6 +1,5 @@
 def build(ctx):
 	srcnode = ctx.srcnode.abspath()
-	bldnode = ctx.bldnode.abspath()
 
 	# Unity source
 	unity_source = [


=====================================
wafhelpers/test.py
=====================================
--- a/wafhelpers/test.py
+++ b/wafhelpers/test.py
@@ -5,7 +5,7 @@ from waflib.Logs import pprint
 def test_write_log(ctx):
 	file_out = "%s/test.log" % ctx.bldnode.abspath()
 
-	log = lst = getattr(ctx, 'utest_results', [])
+	log = getattr(ctx, 'utest_results', [])
 
 	if not log:
 		return


=====================================
wafhelpers/waf.py
=====================================
--- a/wafhelpers/waf.py
+++ b/wafhelpers/waf.py
@@ -1,6 +1,5 @@
 from waflib.Configure import conf
 from waflib.TaskGen import feature, before_method
-from waflib.Task import Task
 import os
 
 @before_method('apply_incpaths')



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/17bebd0eb6b978b12f14cc85e113cc039dbb57f6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161230/c89839e7/attachment.html>


More information about the vc mailing list