From c656c0b2885768fdf8e4d3415d94881321babf40 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 15 Sep 2022 08:35:30 +0300 Subject: Remove unused private method SConsEnvironment._exceeds_version() --- CHANGES.txt | 1 + SCons/Script/SConscript.py | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 1925495..ed5fcbf 100755 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -12,6 +12,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER From Anatoli Babenia: - Do not initialize DefaultEnvironment when calling EnsureSConsVersion() and EnsurePythonVersion(). + - Remove unused private method SConsEnvironment._exceeds_version(). From William Deegan: - Added ValidateOptions() which will check that all command line options are in either diff --git a/SCons/Script/SConscript.py b/SCons/Script/SConscript.py index 2b11e2f..d340a91 100644 --- a/SCons/Script/SConscript.py +++ b/SCons/Script/SConscript.py @@ -385,11 +385,6 @@ class SConsEnvironment(SCons.Environment.Base): # # Private methods of an SConsEnvironment. # - def _exceeds_version(self, major, minor, v_major, v_minor): - """Return 1 if 'major' and 'minor' are greater than the version - in 'v_major' and 'v_minor', and 0 otherwise.""" - return (major > v_major or (major == v_major and minor > v_minor)) - @staticmethod def _get_major_minor_revision(version_string): """Split a version string into major, minor and (optionally) -- cgit v0.12