diff options
author | Ben Straub <bs@github.com> | 2012-11-30 16:31:42 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-30 16:31:42 -0800 |
commit | c7231c45fecf6c0ae91815a82db7e98c94689497 (patch) | |
tree | 33426a5463917d64b1f160f8083f3dfbd4217fe3 /src/diff.h | |
parent | 4ec197f3049d203739066e0c2d2c5c39f78fd808 (diff) | |
download | libgit2-c7231c45fecf6c0ae91815a82db7e98c94689497.tar.gz |
Deploy GITERR_CHECK_VERSION
Diffstat (limited to 'src/diff.h')
-rw-r--r-- | src/diff.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/diff.h b/src/diff.h index 1f45af1cd..f93bab18d 100644 --- a/src/diff.h +++ b/src/diff.h @@ -62,18 +62,5 @@ extern int git_diff__oid_for_file( git_repository *, const char *, uint16_t, git_off_t, git_oid *); -GIT_INLINE(bool) git_diff__opts_has_valid_version(const git_diff_options *opts) -{ - if (!opts) - return true; - - if (opts->version > 0 && opts->version <= GIT_DIFF_OPTIONS_VERSION) - return true; - - giterr_set(GITERR_INVALID, "Invalid version %d in git_diff_options", opts->version); - return false; -} - - #endif |