From 2892430fa73311151dd808f3b4343464149d3e25 Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Sun, 26 May 2019 14:12:55 +0200 Subject: [PATCH] Ignore deprecated (and reportedly unsafe) method --- rust-bindings/rust/conf/ostree.toml | 6 +++++- rust-bindings/rust/src/auto/repo.rs | 4 ---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rust-bindings/rust/conf/ostree.toml b/rust-bindings/rust/conf/ostree.toml index 398cb0f3..5d7e8331 100644 --- a/rust-bindings/rust/conf/ostree.toml +++ b/rust-bindings/rust/conf/ostree.toml @@ -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" diff --git a/rust-bindings/rust/src/auto/repo.rs b/rust-bindings/rust/src/auto/repo.rs index dfe9f3e4..d7841c8e 100644 --- a/rust-bindings/rust/src/auto/repo.rs +++ b/rust-bindings/rust/src/auto/repo.rs @@ -117,10 +117,6 @@ impl Repo { } } - //pub fn checkout_tree_at>(&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>(&self, cancellable: Option<&P>) -> Result { unsafe { let mut out_stats = RepoTransactionStats::uninitialized();