cleans up some compiler warnings

This commit is contained in:
Nathan Singer 2025-04-28 10:53:15 -04:00
parent a7aad7d99f
commit 999c7989f3
2 changed files with 2 additions and 4 deletions

View File

@ -88,7 +88,6 @@ func get_card_data_from_id(id: String) -> Dictionary:
func _search_results_name(search_query: String) -> Dictionary: func _search_results_name(search_query: String) -> Dictionary:
var selected_entry = null
for entry in _bulk_data: for entry in _bulk_data:
if entry["layout"] == "art_series": if entry["layout"] == "art_series":
continue continue
@ -102,7 +101,6 @@ func _search_results_name(search_query: String) -> Dictionary:
func _search_results_generic(field: String, search_query: String) -> Dictionary: func _search_results_generic(field: String, search_query: String) -> Dictionary:
var selected_entry = null
for entry in _bulk_data: for entry in _bulk_data:
if entry["layout"] == "art_series": if entry["layout"] == "art_series":
continue continue

View File

@ -45,12 +45,12 @@ func _do_free(cache) -> void:
cache.queue_free() cache.queue_free()
func add_new_deck(cards: String, name: String, about = "") -> void: func add_new_deck(cards: String, _name: String, about = "") -> void:
var _queries = _convert_mtgo_to_cache_lookup(cards) var _queries = _convert_mtgo_to_cache_lookup(cards)
_do_decklist_cache(_queries) _do_decklist_cache(_queries)
var _decks = load_decks() var _decks = load_decks()
_decks.push_back({"name": name, "about": about, "decklist": _queries}) _decks.push_back({"name": _name, "about": about, "decklist": _queries})
_write_to_decks(_decks) _write_to_decks(_decks)