[Git][NTPsec/ntpsec][master] Remove unused variables reported by pyflakes

Matt Selsky gitlab at mg.gitlab.com
Tue Jan 3 07:24:37 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
c6d711fc by Matt Selsky at 2017-01-03T02:22:34-05:00
Remove unused variables reported by pyflakes

ntpd/wscript:128: local variable 'refclock_define' is assigned to but never used

- - - - -


2 changed files:

- ntpd/wscript
- wafhelpers/refclock.py


Changes:

=====================================
ntpd/wscript
=====================================
--- a/ntpd/wscript
+++ b/ntpd/wscript
@@ -121,12 +121,6 @@ def build(ctx):
 		ctx.bldnode.parent.find_node("host/ntpd/ntp_parser.tab.c")
 	]
 
-	# XXX: This really sucks, we need to get rid of all these refclock
-	#      defines littered everywhere and segment it to their own source files.
-	refclock_define = []
-	if ctx.env.REFCLOCK_ENABLE:
-		refclock_define = ["REFCLOCK=1"]
-
 	if ctx.env.SBINDIR:
 		ntpd_install_path = ctx.env.SBINDIR
 	else:


=====================================
wafhelpers/refclock.py
=====================================
--- a/wafhelpers/refclock.py
+++ b/wafhelpers/refclock.py
@@ -139,7 +139,6 @@ def refclock_config(ctx):
 		# XXX: better error checking
 		ids = ctx.options.refclocks.split(",")
 
-	ctx.env.REFCLOCK_DEFINES = []
 	ctx.env.REFCLOCK_SOURCE = []
 
 	# Remove duplicate IDs while preserving order.



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


More information about the vc mailing list