Skip to content

Commit

Permalink
Merge pull request #874 from oddstr13/pr-cleanup-2
Browse files Browse the repository at this point in the history
Remove unused function compare_version
  • Loading branch information
oddstr13 authored Jun 10, 2024
2 parents 819b861 + 4a1ac6d commit f4ffe69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion jellyfin_kodi/helper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
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
Expand Down
19 changes: 0 additions & 19 deletions jellyfin_kodi/helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f4ffe69

Please sign in to comment.