clean up warnings

This commit is contained in:
Lera Elvoé 2024-07-28 13:39:09 +03:00
parent e257c76dc6
commit 616c185abf
No known key found for this signature in database
11 changed files with 10 additions and 11 deletions

View file

@ -30,7 +30,7 @@ func _replace(string: String, replacements: Array) -> String:
return string % replacements return string % replacements
func _value_request(on_output_port: int) -> Variant: func _value_request(_on_output_port: int) -> Variant:
var string: String = DeckType.convert_value(await resolve_input_port_value_async(0), DeckType.Types.STRING) var string: String = DeckType.convert_value(await resolve_input_port_value_async(0), DeckType.Types.STRING)
var replacements: Array = DeckType.convert_value(await resolve_input_port_value_async(1), DeckType.Types.ARRAY) var replacements: Array = DeckType.convert_value(await resolve_input_port_value_async(1), DeckType.Types.ARRAY)

View file

@ -30,7 +30,7 @@ func _replace(string: String, replacements: Dictionary) -> String:
return string.format(replacements) return string.format(replacements)
func _value_request(on_output_port: int) -> Variant: func _value_request(_on_output_port: int) -> Variant:
var string: String = DeckType.convert_value(await resolve_input_port_value_async(0), DeckType.Types.STRING) var string: String = DeckType.convert_value(await resolve_input_port_value_async(0), DeckType.Types.STRING)
var replacements: Dictionary = DeckType.convert_value(await resolve_input_port_value_async(1), DeckType.Types.DICTIONARY) var replacements: Dictionary = DeckType.convert_value(await resolve_input_port_value_async(1), DeckType.Types.DICTIONARY)

View file

@ -37,7 +37,7 @@ func _round(v: float) -> float:
return roundf(v) return roundf(v)
func _value_request(on_output_port: int) -> Variant: func _value_request(_on_output_port: int) -> Variant:
var v = await resolve_input_port_value_async(0) var v = await resolve_input_port_value_async(0)
v = DeckType.convert_value(v, DeckType.Types.NUMERIC) v = DeckType.convert_value(v, DeckType.Types.NUMERIC)

View file

@ -63,7 +63,7 @@ func _value_request(_on_output_port: int) -> float:
return _do(v) return _do(v)
func _receive(on_input_port: int, data: Variant) -> void: func _receive(_on_input_port: int, data: Variant) -> void:
var v = DeckType.convert_value(data, DeckType.Types.NUMERIC) var v = DeckType.convert_value(data, DeckType.Types.NUMERIC)
send(0, _do(v)) send(0, _do(v))

View file

@ -24,7 +24,7 @@ func _init() -> void:
) )
func _receive(port : int, data : Variant) -> void: func _receive(_port : int, data : Variant) -> void:
if !data or !DeckType.is_valid_vector(data): if !data or !DeckType.is_valid_vector(data):
DeckHolder.logger.log_node("Vector Decompose: the vector is invalid.", Logger.LogType.ERROR) DeckHolder.logger.log_node("Vector Decompose: the vector is invalid.", Logger.LogType.ERROR)

View file

@ -20,7 +20,7 @@ func _init() -> void:
) )
func _receive(port : int, data : Variant) -> void: func _receive(_port : int, data : Variant) -> void:
var normalized = normalize_vector(data) var normalized = normalize_vector(data)
if !normalized is Dictionary: if !normalized is Dictionary:

View file

@ -54,7 +54,7 @@ func _receive(to_input_port: int, data: Variant) -> void:
send(0, await get_xform(scene, data)) send(0, await get_xform(scene, data))
func _value_request(on_input_port: int) -> Variant: func _value_request(_on_input_port: int) -> Variant:
var scene: String = await resolve_input_port_value_async(0) var scene: String = await resolve_input_port_value_async(0)
var source_id: float = await resolve_input_port_value_async(1) var source_id: float = await resolve_input_port_value_async(1)
return await get_xform(scene, source_id) return await get_xform(scene, source_id)

View file

@ -60,7 +60,7 @@ func _receive(to_input_port: int, data: Variant) -> void:
send(0, await _is_source_visible(scene_name, source_id)) send(0, await _is_source_visible(scene_name, source_id))
func _value_request(on_output_port: int) -> Variant: func _value_request(_on_output_port: int) -> Variant:
var scene_name = await resolve_input_port_value_async(0) var scene_name = await resolve_input_port_value_async(0)
var source_id = await resolve_input_port_value_async(1) var source_id = await resolve_input_port_value_async(1)
return await _is_source_visible(scene_name, source_id) return await _is_source_visible(scene_name, source_id)

View file

@ -50,7 +50,7 @@ func _receive(to_input_port: int, data: Variant) -> void:
input_name = await resolve_input_port_value_async(0) input_name = await resolve_input_port_value_async(0)
settings = await resolve_input_port_value_async(1) settings = await resolve_input_port_value_async(1)
var r := noobs.make_generic_request( var _r := noobs.make_generic_request(
"SetInputSettings", "SetInputSettings",
{ {
"input_name": input_name, "input_name": input_name,

View file

@ -313,7 +313,6 @@ func close_tab(tab: int) -> void:
await get_tree().process_frame await get_tree().process_frame
tab_container.close_tab(tab) tab_container.close_tab(tab)
var tc = tab_container.get_tab_count()
if tab_container.get_tab_count() == 0: if tab_container.get_tab_count() == 0:
bottom_dock.variable_viewer.disable_new_button() bottom_dock.variable_viewer.disable_new_button()
sidebar.set_edited_deck() sidebar.set_edited_deck()

View file

@ -185,7 +185,7 @@ func initialize_from_deck() -> void:
if deck.is_library: if deck.is_library:
connection_drag_started.connect( connection_drag_started.connect(
func(from_node: StringName, from_port: int, is_output: bool): func(_from_node: StringName, _from_port: int, _is_output: bool):
force_connection_drag_end() force_connection_drag_end()
) )