diff options
author | Russell Belfer <rb@github.com> | 2014-04-29 14:30:15 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-05-02 09:21:33 -0700 |
commit | 7a2e56a3f6115c3a145e4f73d0aa8bea6dded899 (patch) | |
tree | 29ec64c825c4da68debdfe9d7e1aa0deb219bf86 /src/diff.c | |
parent | b23b112dfe8eceb39eaaea2d5e60d971c4371aa0 (diff) | |
download | libgit2-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.c | 14 |
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); |