From 3409ae7eeae150035fd9502a7cc996ffbda93bee Mon Sep 17 00:00:00 2001 From: herlesupreeth Date: Fri, 18 Sep 2020 15:38:07 +0200 Subject: 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 --- pySim/utils.py | 6 ------ 1 file changed, 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)) ] -- cgit v1.2.3