Remove dead code
This commit is contained in:
12
cmdasana.py
12
cmdasana.py
@@ -12,17 +12,6 @@ class CmdAsana:
|
||||
def __init__(self):
|
||||
self.client = asana.Client.basic_auth(self.ASANA_API_KEY)
|
||||
self.me = self.client.users.me()
|
||||
|
||||
f = open('.config', 'r')
|
||||
config = f.read()
|
||||
self.config = json.loads(config)
|
||||
f.close()
|
||||
|
||||
def shouldShowWorkspace(self, workspace_id):
|
||||
try:
|
||||
return not (workspace_id in self.config['excluded_domains'])
|
||||
except KeyError:
|
||||
return True
|
||||
|
||||
def myWorkspaces(self):
|
||||
return self.me['workspaces']
|
||||
@@ -35,7 +24,6 @@ class CmdAsana:
|
||||
'completed_since': 'now'
|
||||
})
|
||||
|
||||
|
||||
def completeTask(self, task_id):
|
||||
self.client.tasks.update(task_id, completed=True)
|
||||
self.refreshTaskList()
|
||||
|
||||
Reference in New Issue
Block a user