From f02afbe371a86e21501d476841f4e7e896e825f3 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 9 Mar 2020 03:18:27 +0200 Subject: [PATCH] Removed legacy get_layer_container() from Canvas.gd --- Scripts/Canvas.gd | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Scripts/Canvas.gd b/Scripts/Canvas.gd index 7e0e85001..5bfa2958e 100644 --- a/Scripts/Canvas.gd +++ b/Scripts/Canvas.gd @@ -496,13 +496,6 @@ func update_texture(layer_index : int) -> void: frame_texture_rect = Global.find_node_by_name(Global.layers[layer_index][2].get_child(frame),"FrameTexture") frame_texture_rect.texture = layers[layer_index][1] - -func get_layer_container(layer_index : int) -> LayerContainer: - for container in Global.vbox_layer_container.get_children(): - if container is LayerContainer && container.i == layer_index: - return container - return null - func pencil_and_eraser(sprite : Image, mouse_pos : Vector2, color : Color, current_mouse_button : String, current_action := "None") -> void: if made_line: return