Dead code cleanup.

This commit is contained in:
Dave Page
2017-09-28 10:16:49 +01:00
parent f855ed88ce
commit 739d8e2f1f
6 changed files with 11 additions and 35 deletions

View File

@@ -8,8 +8,6 @@
##########################################################################
from pgadmin.model import Version
import config
import sys
def get_version():
@@ -18,11 +16,4 @@ def get_version():
except Exception:
return -1
if int(version.value) > int(config.SETTINGS_SCHEMA_VERSION):
print(u"""
The database schema version is {0}, whilst the version required by the \
software is {1}.
Exiting...""".format(version.value, config.SETTINGS_SCHEMA_VERSION))
sys.exit(1)
return version.value