Skip to content

Commit

Permalink
[IMP] Removed seemingly unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Oct 9, 2024
1 parent e2180a2 commit 4ee993a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions source/app/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import base64
import datetime
import decimal
import hashlib
import logging as log
import marshmallow
Expand All @@ -42,27 +41,6 @@
from app.models import Cases


def _return_task(success, user, initial, logs, data, case_name, imported_files):
ret = {
'success': success,
'user': user,
'initial': initial,
'logs': logs,
'data': data,
'case_name': case_name,
'imported_files': imported_files
}
return ret


def task_success(user=None, initial=None, logs=None, data=None, case_name=None, imported_files=None):
return _return_task(True, user, initial, logs, data, case_name, imported_files)


def task_failure(user=None, initial=None, logs=None, data=None, case_name=None, imported_files=None):
return _return_task(False, user, initial, logs, data, case_name, imported_files)


class FileRemover(object):
def __init__(self):
self.weak_references = dict() # weak_ref -> filepath to remove
Expand Down

0 comments on commit 4ee993a

Please sign in to comment.