Skip to content

Commit 7da69d5

Browse files
gsk: drop useless functions from RoundedRect
People are supposed to use the new/from_rect constructors instead
1 parent df8feab commit 7da69d5

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

gsk4/src/rounded_rect.rs

-28
Original file line numberDiff line numberDiff line change
@@ -48,34 +48,6 @@ impl RoundedRect {
4848
}
4949
}
5050

51-
#[doc(alias = "gsk_rounded_rect_init")]
52-
pub fn init(
53-
&mut self,
54-
bounds: Rect,
55-
top_left: Size,
56-
top_right: Size,
57-
bottom_right: Size,
58-
bottom_left: Size,
59-
) {
60-
unsafe {
61-
ffi::gsk_rounded_rect_init(
62-
&mut self.inner,
63-
bounds.to_glib_none().0,
64-
top_left.to_glib_none().0,
65-
top_right.to_glib_none().0,
66-
bottom_right.to_glib_none().0,
67-
bottom_left.to_glib_none().0,
68-
);
69-
}
70-
}
71-
72-
#[doc(alias = "gsk_rounded_rect_init_from_rect")]
73-
pub fn init_from_rect(&mut self, bounds: Rect, radius: f32) {
74-
unsafe {
75-
ffi::gsk_rounded_rect_init_from_rect(&mut self.inner, bounds.to_glib_none().0, radius);
76-
}
77-
}
78-
7951
#[doc(alias = "gsk_rounded_rect_normalize")]
8052
pub fn normalize(&mut self) {
8153
unsafe {

0 commit comments

Comments
 (0)