Skip to content

Commit aea05a3

Browse files
committed
Remove unused code
1 parent 3b8a18f commit aea05a3

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/cryptojwt/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ def intarr2bin(arr):
3737
return unhexlify(''.join(["%02x" % byte for byte in arr]))
3838

3939

40-
def long2hexseq(l):
41-
try:
42-
return unhexlify(hex(l)[2:])
43-
except TypeError:
44-
return unhexlify(hex(l)[2:-1])
45-
46-
4740
def intarr2long(arr):
4841
return int(''.join(["%02x" % byte for byte in arr]), 16)
4942

tests/test_2_jwk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from cryptojwt import as_unicode
1717
from cryptojwt import b64e
1818
from cryptojwt import long2intarr
19-
from cryptojwt.jwk import base64url_to_long, NIST2SEC
19+
from cryptojwt.jwk import base64url_to_long
2020
from cryptojwt.jwk import base64_to_long
2121
from cryptojwt.jwk import DeSerializationNotPossible
2222
from cryptojwt.jwk import ECKey
@@ -27,7 +27,7 @@
2727
from cryptojwt.jwk import keyrep
2828
from cryptojwt.jwk import KEYS
2929
from cryptojwt.jwk import load_jwks
30-
from cryptojwt.jwk import rsa_eq
30+
from cryptojwt.jwk import NIST2SEC
3131
from cryptojwt.jwk import RSAKey
3232
from cryptojwt.jwk import sha256_digest
3333
from cryptojwt.jwk import SYMKey

0 commit comments

Comments
 (0)