diff --git a/functions.py b/functions.py index e9dd55b..ce13be2 100644 --- a/functions.py +++ b/functions.py @@ -21,18 +21,3 @@ def msgBox(title, text, form = Gtk.MessageType.WARNING): def rmatch(pattern, string): return re.match(pattern, string) != None - -def readSettings(): - global settings - if not path.isfile(settingsLocation + "config.json"): - os.makedirs(settingsLocation, 0o755) - open(settingsLocation + "config.dat", 'x') - try: - settings = pickle.load(open(settingsLocation + "config.dat", 'rb')) - except: - MsgBox("Error", "Failed to load settings. The default settings will be used instead.") - settings = {"setting":"value", "save database": True} #indent me when releasing! - -def writeSettings(): - global settings - pickle.dump(settings, open(settingsLocation + "config.dat", 'wb'))