From aa3f6e3a5c71af5cb57698c7ef53d0dcdc059d5d Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Mon, 24 Jan 2022 22:15:49 +0100 Subject: [PATCH] wscript: drop unused local VERSION variables pyflakes correctly points out problems like: gtk2_ardour/wscript:537:5 local variable 'VERSION' is assigned to but never used --- gtk2_ardour/wscript | 2 -- headless/wscript | 3 --- libs/fst/wscript | 2 -- luasession/wscript | 1 - session_utils/wscript | 1 - 5 files changed, 9 deletions(-) diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index a14ff18af8..a19de83c63 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -548,8 +548,6 @@ def build_color_scheme(path, prefix): return color_scheme def build(bld): - - VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR']) I18N_PACKAGE = 'gtk2_ardour' + bld.env['MAJOR'] # Tool to dump lua-bindings (of gtk2ardour + libs) diff --git a/headless/wscript b/headless/wscript index 8d6fe0586d..5ec47e7441 100644 --- a/headless/wscript +++ b/headless/wscript @@ -19,9 +19,6 @@ def configure(conf): conf.load('misc') def build(bld): - - VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR']) - # just the normal executable version of the GTK GUI obj = bld (features = 'cxx c cxxprogram') # this program does not do the whole hidden symbols thing diff --git a/libs/fst/wscript b/libs/fst/wscript index 1bae79fd18..d74b83a0d0 100644 --- a/libs/fst/wscript +++ b/libs/fst/wscript @@ -21,8 +21,6 @@ def configure(conf): conf.check(compiler='cxx', lib='gdi32', mandatory=True, uselib_store='GDI32') def build(bld): - VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR']) - if bld.is_defined('VST3_SUPPORT'): obj = bld (features = 'cxx c cxxprogram') obj.source = 'vst3-scanner.cc' diff --git a/luasession/wscript b/luasession/wscript index a0598261cb..422539468d 100644 --- a/luasession/wscript +++ b/luasession/wscript @@ -20,7 +20,6 @@ def configure(conf): mandatory=False) def build(bld): - VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR']) if not bld.is_defined('HAVE_READLINE'): return diff --git a/session_utils/wscript b/session_utils/wscript index d916931e12..d63e9f07ae 100644 --- a/session_utils/wscript +++ b/session_utils/wscript @@ -67,7 +67,6 @@ def build_ardour_util(bld, util): obj.linkflags = ' -lintl' def build(bld): - VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR']) # session-utils depend on the dummy backend if not "dummy" in bld.env['BACKENDS']: return