From 5fcefd12b0a0690db48dac01ecdd2c8ca8d464ec Mon Sep 17 00:00:00 2001
From: Lynne <thecoolone3@gmail.com>
Date: Sun, 19 May 2019 22:45:55 +1000
Subject: [PATCH] remove obsolete update code

---
 main.py | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/main.py b/main.py
index 011a5b4..0411921 100755
--- a/main.py
+++ b/main.py
@@ -28,19 +28,6 @@ except:
 	shutil.copy2("config.sample.json", "config.json")
 	cfg.update(json.load(open('config.json', 'r')))
 
-#if the user is using a (very!) old version that still uses the .secret files, migrate to the new method
-if os.path.exists("clientcred.secret"):
-	print("Upgrading to new storage method")
-	cc = open("clientcred.secret").read().split("\n")
-	cfg['client'] = {
-			"id": cc[0],
-			"secret": cc[1]
-	}
-	cfg['secret'] = open("usercred.secret").read().rstrip("\n")
-	os.remove("clientcred.secret")
-	os.remove("usercred.secret")
-
-
 if "client" not in cfg:
 	print("No application info -- registering application with {}".format(cfg['site']))
 	client_id, client_secret = Mastodon.create_app("mstdn-ebooks",