summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-08-23 19:27:07 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-08-23 19:27:07 +0100
commit7302297304b2db3c04be6ba48f5701afd23537b7 (patch)
tree24e8e13573928037dc170696c75cb3ffd08ef875
parentAdd copyrange support (diff)
downloadnetfs-gitfs-7302297304b2db3c04be6ba48f5701afd23537b7.tar.bz2
netfs-gitfs-7302297304b2db3c04be6ba48f5701afd23537b7.tar.xz
netfs-gitfs-7302297304b2db3c04be6ba48f5701afd23537b7.zip
Remove unused helper
-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));