Remove unused code

This commit is contained in:
The Magician 2024-08-17 20:19:21 +01:00
parent 5c508f035c
commit 793fb28d38
1 changed files with 0 additions and 47 deletions

View File

@ -15,51 +15,4 @@ func main() {
cli.RunUpdateCheck(db)
cli.MainCliLoop(db)
/*
var selectedCardId string
var selectedCardSearchOption string = "None"
var lastOutput string
for {
screen.Clear()
screen.MoveTopLeft()
fmt.Println("Storage location:", storageBox, "|", "Source:", source)
fmt.Println("Selected card:", selectedCardSearchOption, "ID:", selectedCardId)
if lastOutput != "" {
fmt.Println(lastOutput)
}
var action string
action = logic.GetResponse("[s]earch for card/[i]nsert selected card/[q]uit:")
switch action {
case "s":
selectedCardId, selectedCardSearchOption, err = logic.Search(searchOptions)
logic.Check(err)
storageLocation.CardPrintingId = selectedCardId
lastOutput = ""
continue
case "i":
if selectedCardId == "" {
lastOutput = "No selected card, please search for one."
continue
}
err = logic.StoreCard(db, storageLocation)
logic.Check(err)
lastOutput = "Inserted card: " + selectedCardSearchOption
break
case "q":
os.Exit(0)
default:
lastOutput = "Not a valid command: " + action
break
}
}
*/
}