From 69e9c1b4fcb6f549bd9fc5c5133b3d1551b95d08 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Fri, 4 Feb 2022 15:48:14 -0800 Subject: [PATCH] image: Remove new() Since we already `#[derive(Default)]`, we don't need a `new()` function to do the same thing --- src/widgets/image.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/widgets/image.rs b/src/widgets/image.rs index 62d5b40..8b9a520 100644 --- a/src/widgets/image.rs +++ b/src/widgets/image.rs @@ -41,15 +41,6 @@ mod imp { const NAME: &'static str = "LpImage"; type ParentType = gtk::Widget; type Type = super::LpImage; - - fn new() -> Self { - Self { - file: RefCell::default(), - image_width: Cell::default(), - image_height: Cell::default(), - texture: RefCell::default(), - } - } } impl ObjectImpl for LpImage {