mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-01-21 12:34:10 +01:00
Removed unused function for counting CPU cores
This commit is contained in:
@@ -309,16 +309,6 @@ class CurrentDir(object):
|
||||
pass
|
||||
|
||||
|
||||
_ncpus = None
|
||||
|
||||
|
||||
def detect_ncpus():
|
||||
global _ncpus
|
||||
if _ncpus is None:
|
||||
_ncpus = max(1, os.cpu_count() or 1)
|
||||
return _ncpus
|
||||
|
||||
|
||||
relpath = os.path.relpath
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user