[libgit2-glib] diff: remove print_compact
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] diff: remove print_compact
- Date: Fri, 22 Nov 2013 07:28:30 +0000 (UTC)
commit b5894902176acb60c6a259a7f68f4bfadadbfacb
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Nov 21 17:47:48 2013 +0100
diff: remove print_compact
This is not supported by libgit2 anymore
libgit2-glib/ggit-diff.c | 37 +------------------------------------
libgit2-glib/ggit-diff.h | 4 ----
2 files changed, 1 insertions(+), 40 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff.c b/libgit2-glib/ggit-diff.c
index 84d87b4..89372c7 100644
--- a/libgit2-glib/ggit-diff.c
+++ b/libgit2-glib/ggit-diff.c
@@ -368,7 +368,7 @@ ggit_diff_foreach (GgitDiff *diff,
CallbackWrapperData wrapper_data;
git_diff_file_cb real_file_cb = NULL;
git_diff_hunk_cb real_hunk_cb = NULL;
- git_diff_data_cb real_line_cb = NULL;
+ git_diff_line_cb real_line_cb = NULL;
g_return_if_fail (GGIT_IS_DIFF (diff));
g_return_if_fail (file_cb != NULL && hunk_cb != NULL && line_cb != NULL);
@@ -405,41 +405,6 @@ ggit_diff_foreach (GgitDiff *diff,
}
/**
- * ggit_diff_print_compact:
- * @diff: a #GgitDiff.
- * @print_cb: (scope call) (closure user_data): a #GgitDiffLineCallback.
- * @user_data: callback user data.
- * @error: a #GError for error reporting, or %NULL.
- *
- * Iterates over @diff generating text output like "git diff --name-status".
- */
-void
-ggit_diff_print_compact (GgitDiff *diff,
- GgitDiffLineCallback print_cb,
- gpointer *user_data,
- GError **error)
-{
- gint ret;
- CallbackWrapperData wrapper_data;
-
- g_return_if_fail (GGIT_IS_DIFF (diff));
- g_return_if_fail (print_cb != NULL);
- g_return_if_fail (error == NULL || *error == NULL);
-
- wrapper_data.user_data = user_data;
- wrapper_data.line_cb = print_cb;
-
- ret = git_diff_print_compact (_ggit_native_get (diff),
- ggit_diff_line_callback_wrapper,
- &wrapper_data);
-
- if (ret != GIT_OK)
- {
- _ggit_error_set (error, ret);
- }
-}
-
-/**
* ggit_diff_print_patch:
* @diff: a #GgitDiff.
* @print_cb: (scope call) (closure user_data): a #GgitDiffLineCallback.
diff --git a/libgit2-glib/ggit-diff.h b/libgit2-glib/ggit-diff.h
index a8367ba..5e59a69 100644
--- a/libgit2-glib/ggit-diff.h
+++ b/libgit2-glib/ggit-diff.h
@@ -91,10 +91,6 @@ void ggit_diff_foreach (GgitDiff *diff,
GgitDiffLineCallback line_cb,
gpointer *user_data,
GError **error);
-void ggit_diff_print_compact (GgitDiff *diff,
- GgitDiffLineCallback print_cb,
- gpointer *user_data,
- GError **error);
void ggit_diff_print_patch (GgitDiff *diff,
GgitDiffLineCallback print_cb,
gpointer *user_data,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]