refactor: Remove file-based license saving and loading methods.

This commit is contained in:
2026-01-30 17:54:59 +08:00
parent 2915cbbb80
commit 1563de74c5

View File

@@ -154,21 +154,4 @@ class LicenseManager:
# Neither matches - could be both changed or completely invalid key
return False, 'both_changed'
@staticmethod
def save_license(key):
try:
with open("license.dat", "w") as f:
f.write(key.strip())
return True
except:
return False
@staticmethod
def load_license():
if not os.path.exists("license.dat"):
return None
try:
with open("license.dat", "r") as f:
return f.read().strip()
except:
return None