Last use removed when AddNode was removed in 779de503275157.
Signed-off-by: Brian Foley <[email protected]>
---
lib/jqueue/__init__.py | 26 --------------------------
1 file changed, 26 deletions(-)
diff --git a/lib/jqueue/__init__.py b/lib/jqueue/__init__.py
index b4cedb4..a4c25ba 100644
--- a/lib/jqueue/__init__.py
+++ b/lib/jqueue/__init__.py
@@ -1404,32 +1404,6 @@ class JobQueue(object):
return result
- @classmethod
- def _GetJobIDsUnlocked(cls, sort=True, archived=False):
- """Return all known job IDs.
-
- The method only looks at disk because it's a requirement that all
- jobs are present on disk (so in the _memcache we don't have any
- extra IDs).
-
- @type sort: boolean
- @param sort: perform sorting on the returned job ids
- @rtype: list
- @return: the list of job IDs
-
- """
- jlist = []
-
- for path in cls._DetermineJobDirectories(archived):
- for filename in utils.ListVisibleFiles(path):
- m = constants.JOB_FILE_RE.match(filename)
- if m:
- jlist.append(int(m.group(1)))
-
- if sort:
- jlist.sort()
- return jlist
-
def _LoadJobUnlocked(self, job_id):
"""Loads a job from the disk or memory.
--
2.8.0.rc3.226.g39d4020