From ea30fb1b7395495fded8bff9a749be2f3845b480 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 27 Oct 2021 18:35:57 +0200 Subject: [PATCH] removed unused defer function --- openpype/tools/utils/lib.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/openpype/tools/utils/lib.py b/openpype/tools/utils/lib.py index 4b91a5e6dd..05e8fc4cfb 100644 --- a/openpype/tools/utils/lib.py +++ b/openpype/tools/utils/lib.py @@ -35,26 +35,6 @@ def application(): yield app -def defer(delay, func): - """Append artificial delay to `func` - - This aids in keeping the GUI responsive, but complicates logic - when producing tests. To combat this, the environment variable ensures - that every operation is synchonous. - - Arguments: - delay (float): Delay multiplier; default 1, 0 means no delay - func (callable): Any callable - - """ - - delay *= float(os.getenv("PYBLISH_DELAY", 1)) - if delay > 0: - return QtCore.QTimer.singleShot(delay, func) - else: - return func() - - class SharedObjects: jobs = {}