diff --git a/scenes/better_shell.gd b/scenes/better_shell.gd index 34b9ef8..fecf9eb 100644 --- a/scenes/better_shell.gd +++ b/scenes/better_shell.gd @@ -41,7 +41,6 @@ func run_async_thread(shell_command): var debug = false var command = shell_command.command - var crash_on_fail = shell_command.crash_on_fail if debug: print("$ %s" % command) @@ -59,7 +58,6 @@ func run_async_thread(shell_command): #print(hacky_command) - var result var shell_command_internal = game.shell_test(hacky_command) shell_command.output = shell_command_internal.output diff --git a/scenes/card.gd b/scenes/card.gd index 8c97c5a..2ac4cd4 100644 --- a/scenes/card.gd +++ b/scenes/card.gd @@ -115,7 +115,7 @@ func set_energy(new_energy): func set_id(new_id): id = new_id var art_path = "res://cards/%s.svg" % new_id - var file = File.new() + #var file = File.new() #if file.file_exists(art_path): var texture = load(art_path) if texture: diff --git a/scenes/file_browser.gd b/scenes/file_browser.gd index 1af3fa2..e2c8033 100644 --- a/scenes/file_browser.gd +++ b/scenes/file_browser.gd @@ -121,7 +121,6 @@ func update(): #var is_visible = false if repository and repository.there_is_a_git_cache: - var deleted_files = Array(repository.shell.run("git status -s | grep '^D' | sed 's/^...//'").split("\n")) # The last entries are empty strings, remove them. for file_path in files: diff --git a/scenes/game.gd b/scenes/game.gd index 2f2a0b5..faa1df1 100644 --- a/scenes/game.gd +++ b/scenes/game.gd @@ -142,13 +142,13 @@ func shell_test(command): mutex.lock() #print("go") #print(command) - var before = OS.get_ticks_msec() + #var before = OS.get_ticks_msec() while not $ShellServer._connected: $ShellServer._process(0.1) var response = $ShellServer.send(command) - var after = OS.get_ticks_msec() + #var after = OS.get_ticks_msec() #print("took " + str(after-before)+" ms") #print("stop") mutex.unlock() diff --git a/scenes/main.gd b/scenes/main.gd index 0ad09c2..f243e0a 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -44,7 +44,7 @@ func _ready(): load_level(game.current_level) input.grab_focus() -func _process(delta): +func _process(_delta): if _hint_server.is_connection_available(): _hint_client_connection = _hint_server.take_connection() var length = _hint_client_connection.get_u32() diff --git a/scenes/tcp_server_shell.gd b/scenes/tcp_server_shell.gd index 1756170..a9c6c93 100644 --- a/scenes/tcp_server_shell.gd +++ b/scenes/tcp_server_shell.gd @@ -1,6 +1,6 @@ extends Node -signal data_received(string) +#signal data_received(string) signal new_connection export var port: int