From 709ad07c5cd2cab484d5c5be92fb398e374f88c1 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 30 Nov 2017 18:11:18 +0000 Subject: [PATCH] diff_print: drop unused OstreeRepo argument Noticed this while working on diff output somewhere else. I was initially thinking of making use of this there too, but it's not quite the right fit and would require a lot of churn. Closes: #1121 Approved by: cgwalters --- src/app/rpmostree-libbuiltin.c | 2 +- src/libpriv/rpmostree-util.c | 3 +-- src/libpriv/rpmostree-util.h | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/rpmostree-libbuiltin.c b/src/app/rpmostree-libbuiltin.c index edd7d69c..c9ba5883 100644 --- a/src/app/rpmostree-libbuiltin.c +++ b/src/app/rpmostree-libbuiltin.c @@ -110,7 +110,7 @@ rpmostree_print_treepkg_diff (OstreeSysroot *sysroot, cancellable, error)) return FALSE; - rpmostree_diff_print (repo, removed, added, modified_old, modified_new); + rpmostree_diff_print (removed, added, modified_old, modified_new); } return TRUE; diff --git a/src/libpriv/rpmostree-util.c b/src/libpriv/rpmostree-util.c index 122d5c5c..eee04732 100644 --- a/src/libpriv/rpmostree-util.c +++ b/src/libpriv/rpmostree-util.c @@ -674,8 +674,7 @@ rpmostree_break_hardlink (int dfd, /* Given the result of rpm_ostree_db_diff(), print it. */ void -rpmostree_diff_print (OstreeRepo *repo, - GPtrArray *removed, +rpmostree_diff_print (GPtrArray *removed, GPtrArray *added, GPtrArray *modified_old, GPtrArray *modified_new) diff --git a/src/libpriv/rpmostree-util.h b/src/libpriv/rpmostree-util.h index b9df44ba..ffb62029 100644 --- a/src/libpriv/rpmostree-util.h +++ b/src/libpriv/rpmostree-util.h @@ -86,8 +86,7 @@ gs_file_get_path_cached (GFile *file) gboolean rpmostree_stdout_is_journal (void); -void rpmostree_diff_print (OstreeRepo *repo, - GPtrArray *removed, +void rpmostree_diff_print (GPtrArray *removed, GPtrArray *added, GPtrArray *modified_old, GPtrArray *modified_new);