Skip to content

Commit b5dd501

Browse files
authored
remove unnecessary type constraints in methods (#63)
1 parent a4e6dc1 commit b5dd501

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/drawing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function draw_text_line_with_slider_in_a_box!(image, bounding_box, slider_value,
110110
return nothing
111111
end
112112

113-
function draw_widget!(image::AbstractMatrix, widget_type::AbstractWidgetType, bounding_box::SD.Rectangle, args...; kwargs...)
113+
function draw_widget!(image, widget_type, bounding_box, args...; kwargs...)
114114
if SD.is_outbounds(image, bounding_box)
115115
return nothing
116116
end

src/layout.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ julia> SimpleIMGUI.get_alignment_bounding_box(bounding_box, alignment, padding,
208208
SimpleDraw.Rectangle{Int64}(SimpleDraw.Point{Int64}(9, 22), 3, 6)
209209
```
210210
"""
211-
function get_alignment_bounding_box(bounding_box::SD.Rectangle, alignment::Alignment, padding, height, width)
211+
function get_alignment_bounding_box(bounding_box, alignment, padding, height, width)
212212
i_offset, j_offset = get_alignment_offset(bounding_box.height, bounding_box.width, alignment, padding, height, width)
213213
return SD.Rectangle(SD.move(bounding_box.position, i_offset, j_offset), height, width)
214214
end

0 commit comments

Comments
 (0)