mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-28 22:53:43 +01:00
Removed unused function for counting CPU cores
This commit is contained in:
@@ -309,16 +309,6 @@ class CurrentDir(object):
|
|||||||
pass
|
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
|
relpath = os.path.relpath
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user