Skip to content

Commit f060548

Browse files
committed
chore: remove unused method
1 parent 18ce8af commit f060548

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

freqtrade/optimize/hyperopt/hyperopt.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import logging
88
import random
9-
import sys
109
from datetime import datetime
1110
from math import ceil
1211
from multiprocessing import Manager
@@ -15,7 +14,6 @@
1514

1615
import rapidjson
1716
from joblib import Parallel, cpu_count, delayed, wrap_non_picklable_objects
18-
from joblib.externals import cloudpickle
1917

2018
from freqtrade.constants import FTHYPT_FILEVERSION, LAST_BT_RESULT_FN, Config
2119
from freqtrade.enums import HyperoptState
@@ -110,17 +108,6 @@ def clean_hyperopt(self) -> None:
110108
logger.info(f"Removing `{p}`.")
111109
p.unlink()
112110

113-
def hyperopt_pickle_magic(self, bases) -> None:
114-
"""
115-
Hyperopt magic to allow strategy inheritance across files.
116-
For this to properly work, we need to register the module of the imported class
117-
to pickle as value.
118-
"""
119-
for modules in bases:
120-
if modules.__name__ != "IStrategy":
121-
cloudpickle.register_pickle_by_value(sys.modules[modules.__module__])
122-
self.hyperopt_pickle_magic(modules.__bases__)
123-
124111
def _save_result(self, epoch: dict) -> None:
125112
"""
126113
Save hyperopt results to file

0 commit comments

Comments
 (0)