Skip to content

Commit 68cbf4c

Browse files
Remove unused method in Draw.gd
Global search for "restore_image" doesn't return anything, so I assume it's unused
1 parent ef133f4 commit 68cbf4c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Tools/Draw.gd

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,6 @@ func update_line_polylines(start : Vector2, end : Vector2) -> void:
142142
_line_polylines = _create_polylines(indicator)
143143

144144

145-
func restore_image() -> void:
146-
var project : Project = Global.current_project
147-
var image = project.frames[project.current_frame].cels[project.current_layer].image
148-
image.unlock()
149-
image.data = _undo_data[image]
150-
image.lock()
151-
152-
153145
func prepare_undo() -> void:
154146
_undo_data = _get_undo_data()
155147

0 commit comments

Comments
 (0)