mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-13 19:04:54 +01:00
Fix debugger warnings about unused identifiers
If the identifier was used by code that was commented out, then I just commented out the line that declared the identifier. If the identifier wasn’t even used by code that was commented out, then I just deleted the line that declared the identifier.
This commit is contained in:
parent
427ebb3efc
commit
b1d0bdd9e7
6 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
signal data_received(string)
|
||||
#signal data_received(string)
|
||||
signal new_connection
|
||||
|
||||
export var port: int
|
||||
|
|
Loading…
Reference in a new issue