From 1e36bc98b94b30a46940a13124e5419baeafc6bb Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 16 Jul 2024 06:35:32 +0200 Subject: [PATCH] chore: Remove unused method --- freqtrade/plugins/protections/iprotection.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/freqtrade/plugins/protections/iprotection.py b/freqtrade/plugins/protections/iprotection.py index 709d03354..1d57b3e4d 100644 --- a/freqtrade/plugins/protections/iprotection.py +++ b/freqtrade/plugins/protections/iprotection.py @@ -143,14 +143,3 @@ class IProtection(LoggingMixin, ABC): until = max_date + timedelta(minutes=stop_minutes) return until - - @staticmethod - def calculate_timespan(start_time: datetime, end_time: datetime) -> int: - """ - Calculate the timespan between two datetime objects in minutes. - - :param start_time: The start datetime. - :param end_time: The end datetime. - :return: The difference between the two datetimes in minutes. - """ - return int((end_time - start_time).total_seconds() / 60)