summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-29 14:30:15 -0700
committerRussell Belfer <rb@github.com>2014-05-02 09:21:33 -0700
commit7a2e56a3f6115c3a145e4f73d0aa8bea6dded899 (patch)
tree29ec64c825c4da68debdfe9d7e1aa0deb219bf86 /src/diff.c
parentb23b112dfe8eceb39eaaea2d5e60d971c4371aa0 (diff)
downloadlibgit2-7a2e56a3f6115c3a145e4f73d0aa8bea6dded899.tar.gz
Get rid of redundant git_diff_options_init fn
Since git_diff_init_options was introduced, remove this old fn.
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/diff.c b/src/diff.c
index 5a6b127a1..b34d15312 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1282,20 +1282,6 @@ int git_diff_tree_to_workdir_with_index(
return error;
}
-int git_diff_options_init(git_diff_options *options, unsigned int version)
-{
- git_diff_options template = GIT_DIFF_OPTIONS_INIT;
-
- if (version != template.version) {
- giterr_set(GITERR_INVALID,
- "Invalid version %d for git_diff_options", (int)version);
- return -1;
- }
-
- memcpy(options, &template, sizeof(*options));
- return 0;
-}
-
size_t git_diff_num_deltas(const git_diff *diff)
{
assert(diff);