aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorherlesupreeth <herlesupreeth@gmail.com>2020-09-18 15:38:07 +0200
committerlaforge <laforge@osmocom.org>2020-09-20 09:49:22 +0000
commit3409ae7eeae150035fd9502a7cc996ffbda93bee (patch)
tree2289725f72531b591c8c306673ca62790cbc3b73
parent45fa604834906477645796394fd8b20873ac3d8b (diff)
Remove redundant hexstr_to_fivebytearr() and hexstr_to_threebytearr() functions
These functions are replaced by a more generic function hexstr_to_Nbytearr(). And, all occurances of redundant functions are replaced by generic functions so its safe to remove them. Change-Id: I7848451b90b35dca29d29f630cdc5405b5e9c19b
-rw-r--r--pySim/utils.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/pySim/utils.py b/pySim/utils.py
index 43e4c53..c5cf480 100644
--- a/pySim/utils.py
+++ b/pySim/utils.py
@@ -122,12 +122,6 @@ def enc_spn(name, hplmn_disp=False, oplmn_disp=False):
if oplmn_disp: byte1 = byte1|0x02
return i2h([byte1])+s2h(name)
-def hexstr_to_fivebytearr(s):
- return [s[i:i+10] for i in range(0, len(s), 10) ]
-
-def hexstr_to_threebytearr(s):
- return [s[i:i+6] for i in range(0, len(s), 6) ]
-
def hexstr_to_Nbytearr(s, nbytes):
return [s[i:i+(nbytes*2)] for i in range(0, len(s), (nbytes*2)) ]