summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
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