Skip to content

Commit

Permalink
pango: Remove Attribute::init()
Browse files Browse the repository at this point in the history
It's unusable with the current signature and not useful in addition to
all the actual constructors.
  • Loading branch information
sdroege committed Oct 29, 2021
1 parent 159523c commit ce8daa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 4 additions & 0 deletions pango/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ status = "generate"
[[object]]
name = "Pango.Attribute"
status = "generate"
[[object.function]]
name = "init"
# irrelevant with all the constructors and unusable like this
ignore = true
[[object.function]]
name = "get_type"
version = "1.44"
Expand Down
10 changes: 0 additions & 10 deletions pango/src/auto/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::AttrClass;
use glib::translate::*;

#[cfg(any(feature = "v1_44", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_44")))]
glib::wrapper! {
Expand Down Expand Up @@ -39,13 +36,6 @@ impl Attribute {
))
}
}

#[doc(alias = "pango_attribute_init")]
pub fn init(&mut self, klass: &AttrClass) {
unsafe {
ffi::pango_attribute_init(self.to_glib_none_mut().0, klass.to_glib_none().0);
}
}
}

impl PartialEq for Attribute {
Expand Down

0 comments on commit ce8daa1

Please sign in to comment.