Browse Source

Remove unused restarter code

tags/build/2.0.0.pre1
Ruud 13 years ago
parent
commit
7a6576e407
  1. 13
      couchpotato/core/_base/_core/main.py

13
couchpotato/core/_base/_core/main.py

@ -47,7 +47,6 @@ class Core(Plugin):
addEvent('setting.save.core.password', self.md5Password)
addEvent('setting.save.core.api_key', self.checkApikey)
self.removeRestartFile()
def md5Password(self, value):
return md5(value) if value else ''
@ -119,9 +118,6 @@ class Core(Plugin):
time.sleep(1)
if restart:
self.createFile(self.restartFilePath(), 'This is the most suckiest way to register if CP is restarted. Ever...')
log.debug('Save to shutdown/restart')
try:
@ -133,15 +129,6 @@ class Core(Plugin):
fireEvent('app.after_shutdown', restart = restart)
def removeRestartFile(self):
try:
os.remove(self.restartFilePath())
except:
pass
def restartFilePath(self):
return os.path.join(Env.get('data_dir'), 'restart')
def launchBrowser(self):
if Env.setting('launch_browser'):

Loading…
Cancel
Save