mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-28 08:18:36 +03:00
cards: remove unused function card_autodetect()
The function card_autodetect() is not used, lets remove it. Change-Id: Ic188e1fffb4a40e89ad276941d20f94cf35e1538
This commit is contained in:
@@ -1559,14 +1559,6 @@ _cards_classes = [ FakeMagicSim, SuperSim, MagicSim, GrcardSim,
|
|||||||
SysmoSIMgr1, SysmoSIMgr2, SysmoUSIMgr1, SysmoUSIMSJS1,
|
SysmoSIMgr1, SysmoSIMgr2, SysmoUSIMgr1, SysmoUSIMSJS1,
|
||||||
FairwavesSIM, OpenCellsSim, WavemobileSim, SysmoISIMSJA2 ]
|
FairwavesSIM, OpenCellsSim, WavemobileSim, SysmoISIMSJA2 ]
|
||||||
|
|
||||||
def card_autodetect(scc):
|
|
||||||
for kls in _cards_classes:
|
|
||||||
card = kls.autodetect(scc)
|
|
||||||
if card is not None:
|
|
||||||
card.reset()
|
|
||||||
return card
|
|
||||||
return None
|
|
||||||
|
|
||||||
def card_detect(ctype, scc):
|
def card_detect(ctype, scc):
|
||||||
# Detect type if needed
|
# Detect type if needed
|
||||||
card = None
|
card = None
|
||||||
|
|||||||
Reference in New Issue
Block a user