From 4a1ac6dede59394647b7fa221cc6be3fb90940f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Mon, 10 Jun 2024 04:30:51 +0000 Subject: [PATCH] Remove unused function compare_version --- jellyfin_kodi/helper/__init__.py | 1 - jellyfin_kodi/helper/utils.py | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/jellyfin_kodi/helper/__init__.py b/jellyfin_kodi/helper/__init__.py index 4aa02574..76210c5f 100644 --- a/jellyfin_kodi/helper/__init__.py +++ b/jellyfin_kodi/helper/__init__.py @@ -16,7 +16,6 @@ from .utils import validate_bluray_dir from .utils import validate_dvd_dir from .utils import values from .utils import JSONRPC -from .utils import compare_version from .utils import unzip from .utils import create_id from .utils import convert_to_local as Local diff --git a/jellyfin_kodi/helper/utils.py b/jellyfin_kodi/helper/utils.py index 60cec1cd..9d4bfdef 100644 --- a/jellyfin_kodi/helper/utils.py +++ b/jellyfin_kodi/helper/utils.py @@ -10,7 +10,6 @@ import sys import re import unicodedata from uuid import uuid4 -from distutils.version import LooseVersion from dateutil import tz, parser from six import text_type, string_types, iteritems, ensure_text, ensure_binary @@ -106,24 +105,6 @@ def create_id(): return uuid4() -def compare_version(a, b): - - ''' -1 a is smaller - 1 a is larger - 0 equal - ''' - a = LooseVersion(a) - b = LooseVersion(b) - - if a < b: - return -1 - - if a > b: - return 1 - - return 0 - - def find(dict, item): ''' Find value in dictionary.