Ignore deprecated (and reportedly unsafe) method

This commit is contained in:
Felix Krull 2019-05-26 14:12:55 +02:00 committed by Colin Walters
parent 7ac82e5d1b
commit 2892430fa7
2 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,6 @@ generate = [
#"OSTree.RepoPruneOptions",
#"OSTree.RepoExportArchiveOptions",
#"OSTree.RepoCheckoutOptions",
#"OSTree.RepoCheckoutAtOptions",
]
@ -90,6 +89,11 @@ status = "generate"
pattern = "write_metadata_async|write_content_async|pull_from_remotes_async|find_remotes_async"
ignore = true
[[object.function]]
# this is deprecated and supposedly unsafe for GI
name = "checkout_tree_at"
ignore = true
[[object]]
name = "OSTree.RepoFinderResult"
status = "generate"

View File

@ -117,10 +117,6 @@ impl Repo {
}
}
//pub fn checkout_tree_at<P: IsA<gio::Cancellable>>(&self, options: /*Ignored*/Option<&mut RepoCheckoutOptions>, destination_dfd: i32, destination_path: &str, commit: &str, cancellable: Option<&P>) -> Result<(), Error> {
// unsafe { TODO: call ostree_sys:ostree_repo_checkout_tree_at() }
//}
pub fn commit_transaction<P: IsA<gio::Cancellable>>(&self, cancellable: Option<&P>) -> Result<RepoTransactionStats, Error> {
unsafe {
let mut out_stats = RepoTransactionStats::uninitialized();