Remove unused variables

This commit is contained in:
Ruud
2012-05-06 23:19:27 +02:00
parent c21f283454
commit a9a1b07c84
3 changed files with 17 additions and 2 deletions
+6
View File
@@ -85,6 +85,8 @@ class Release(Plugin):
db.remove()
return True
def saveFile(self, filepath, type = 'unknown', include_media_info = False):
@@ -107,6 +109,7 @@ class Release(Plugin):
rel.delete()
db.commit()
db.remove()
return jsonified({
'success': True
})
@@ -123,6 +126,7 @@ class Release(Plugin):
rel.status_id = available_status.get('id') if rel.status_id is ignored_status.get('id') else ignored_status.get('id')
db.commit()
db.remove()
return jsonified({
'success': True
})
@@ -149,12 +153,14 @@ class Release(Plugin):
'files': {}
}), manual = True)
db.remove()
return jsonified({
'success': True
})
else:
log.error('Couldn\'t find release with id: %s' % id)
db.remove()
return jsonified({
'success': False
})