Fix GDScript warnings pertaining to unused arguments

Those warnings can be ignored by prefixing the argument with an
underscore.
This commit is contained in:
Hugo Locurcio 2019-12-27 16:14:01 +01:00
parent e06586edce
commit 386473845e
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
5 changed files with 6 additions and 7 deletions

View file

@ -43,7 +43,6 @@ func on_import_palette() -> void:
Global.palette_import_file_dialog.popup_centered()
func on_palette_import_file_selected(path) -> void:
var file := File.new()
var palette : Palette = null
if path.to_lower().ends_with("json"):
palette = Palette.new().load_from_file(path)