mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Dead code cleanup.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user