1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Code cleanups in hscommon & external effects

This commit is contained in:
2021-08-21 16:56:27 -05:00
parent f9316de244
commit 1ef5f56158
9 changed files with 37 additions and 29 deletions

View File

@@ -146,24 +146,29 @@ class Job:
class NullJob:
def __init__(self, *args, **kwargs):
# Null job does nothing
pass
def add_progress(self, *args, **kwargs):
# Null job does nothing
pass
def check_if_cancelled(self):
# Null job does nothing
pass
def iter_with_progress(self, sequence, *args, **kwargs):
return iter(sequence)
def start_job(self, *args, **kwargs):
# Null job does nothing
pass
def start_subjob(self, *args, **kwargs):
return NullJob()
def set_progress(self, *args, **kwargs):
# Null job does nothing
pass