1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Remove unused methods in Draw.gd

This commit is contained in:
Emmanouil Papadeas 2022-09-08 13:32:03 +03:00
parent edbbec1d55
commit ffd6c8c88d

View file

@ -290,11 +290,6 @@ func draw_fill_gap(start: Vector2, end: Vector2) -> void:
_set_pixel_no_cache(c) _set_pixel_no_cache(c)
func draw_tool_pixel(position: Vector2) -> void:
for coord in _compute_draw_tool_pixel(position):
_set_pixel_no_cache(coord)
# Compute the array of coordinates that should be drawn # Compute the array of coordinates that should be drawn
func _compute_draw_tool_pixel(position: Vector2) -> PoolVector2Array: func _compute_draw_tool_pixel(position: Vector2) -> PoolVector2Array:
var result := PoolVector2Array() var result := PoolVector2Array()
@ -307,11 +302,6 @@ func _compute_draw_tool_pixel(position: Vector2) -> PoolVector2Array:
# Algorithm based on http://members.chello.at/easyfilter/bresenham.html # Algorithm based on http://members.chello.at/easyfilter/bresenham.html
func draw_tool_circle(position: Vector2, fill := false) -> void:
for coord in _compute_draw_tool_circle(position, fill):
_set_pixel_no_cache(coord)
# Compute the array of coordinates that should be drawn # Compute the array of coordinates that should be drawn
func _compute_draw_tool_circle(position: Vector2, fill := false) -> PoolVector2Array: func _compute_draw_tool_circle(position: Vector2, fill := false) -> PoolVector2Array:
if _circle_tool_shortcut: if _circle_tool_shortcut: