summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-30 16:31:42 -0800
committerBen Straub <bs@github.com>2012-11-30 16:31:42 -0800
commitc7231c45fecf6c0ae91815a82db7e98c94689497 (patch)
tree33426a5463917d64b1f160f8083f3dfbd4217fe3 /src/diff.h
parent4ec197f3049d203739066e0c2d2c5c39f78fd808 (diff)
downloadlibgit2-c7231c45fecf6c0ae91815a82db7e98c94689497.tar.gz
Deploy GITERR_CHECK_VERSION
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h13
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