mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-08 21:06:28 +08:00
Remove redundant code
This commit is contained in:
parent
e295bdbf46
commit
2c24abbcdf
1 changed files with 0 additions and 2 deletions
|
@ -20,8 +20,6 @@ class RemoveOrphaned:
|
||||||
self.root_dir = qbit_manager.config.root_dir
|
self.root_dir = qbit_manager.config.root_dir
|
||||||
self.orphaned_dir = qbit_manager.config.orphaned_dir
|
self.orphaned_dir = qbit_manager.config.orphaned_dir
|
||||||
|
|
||||||
global _config
|
|
||||||
_config = self.config
|
|
||||||
self.pool = Pool(processes=max(cpu_count() - 1, 1), initializer=init_pool, initargs=(self.config,))
|
self.pool = Pool(processes=max(cpu_count() - 1, 1), initializer=init_pool, initargs=(self.config,))
|
||||||
self.rem_orphaned()
|
self.rem_orphaned()
|
||||||
self.cleanup_pool()
|
self.cleanup_pool()
|
||||||
|
|
Loading…
Add table
Reference in a new issue