image: Remove new()
Since we already `#[derive(Default)]`, we don't need a `new()` function to do the same thing
This commit is contained in:
parent
1737db370b
commit
69e9c1b4fc
1 changed files with 0 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue