Skip to content

Commit b0eb04f

Browse files
Remove unused API
1 parent 669f7b5 commit b0eb04f

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/renderer/shape.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -183,20 +183,6 @@ pub struct Circle {
183183
}
184184

185185
impl Circle {
186-
pub fn from_pixel_coordinate(
187-
center: Coordinate,
188-
radius: f32,
189-
window_dimensions: (f32, f32),
190-
) -> Self {
191-
let (w, h) = window_dimensions;
192-
let (cx, cy) = center;
193-
194-
Self {
195-
center: (cx / w, cy / h),
196-
radius: radius / w.min(h),
197-
}
198-
}
199-
200186
pub fn convert_into_normalized_coordinate(&self, window_dimensions: (f32, f32)) -> Self {
201187
let (w, h) = window_dimensions;
202188
let (cx, cy) = self.center;

0 commit comments

Comments
 (0)