summaryrefslogtreecommitdiff
path: root/src/git.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/git.h')
-rw-r--r--src/git.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/git.h b/src/git.h
index 96a79bd..38a89d3 100644
--- a/src/git.h
+++ b/src/git.h
@@ -28,15 +28,6 @@ namespace GitFS::Git {
return TPtr<R>(r, release);
}
- template<typename E, typename R, typename... P, typename... A>
- auto
- gitSafeGet(int (*get)(R **, P...), A... p)
- {
- R * r = nullptr;
- gitSafe<E>(get, &r, p...);
- return r;
- }
-
git_oid OidParse(const std::string_view & str);
using RepositoryPtr = decltype(gitSafeGet<std::exception>(git_repository_open_bare, git_repository_free, nullptr));