Skip to content

Commit

Permalink
gsk: drop useless functions from RoundedRect
Browse files Browse the repository at this point in the history
People are supposed to use the new/from_rect constructors instead
  • Loading branch information
bilelmoussaoui committed Jan 19, 2022
1 parent 2a41888 commit fe8060c
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions gsk4/src/rounded_rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,6 @@ impl RoundedRect {
}
}

#[doc(alias = "gsk_rounded_rect_init")]
pub fn init(
&mut self,
bounds: Rect,
top_left: Size,
top_right: Size,
bottom_right: Size,
bottom_left: Size,
) {
unsafe {
ffi::gsk_rounded_rect_init(
&mut self.inner,
bounds.to_glib_none().0,
top_left.to_glib_none().0,
top_right.to_glib_none().0,
bottom_right.to_glib_none().0,
bottom_left.to_glib_none().0,
);
}
}

#[doc(alias = "gsk_rounded_rect_init_from_rect")]
pub fn init_from_rect(&mut self, bounds: Rect, radius: f32) {
unsafe {
ffi::gsk_rounded_rect_init_from_rect(&mut self.inner, bounds.to_glib_none().0, radius);
}
}

#[doc(alias = "gsk_rounded_rect_normalize")]
pub fn normalize(&mut self) {
unsafe {
Expand Down

0 comments on commit fe8060c

Please sign in to comment.