diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-04-19 11:52:59 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-04-19 11:52:59 +0300 |
commit | f6640bbcd799a3947de9fa8d6fb7fdb8c765852e (patch) | |
tree | 744b8dd5b89e2855a65c4b34675f67c10f80db08 | |
parent | 0c8ccc56056e4f19d50a9969e20a9c953dd20034 (diff) |
Remove unused methodcache-info-refs
-rw-r--r-- | internal/service/smarthttp/inforefs.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/internal/service/smarthttp/inforefs.go b/internal/service/smarthttp/inforefs.go index 4c304c6b8..267ebb7a8 100644 --- a/internal/service/smarthttp/inforefs.go +++ b/internal/service/smarthttp/inforefs.go @@ -112,24 +112,6 @@ func readCachedInfoRefs(ctx context.Context, req *gitalypb.InfoRefsRequest, w io return nil } -func hasLogsRefs(ctx context.Context, req *gitalypb.InfoRefsRequest) (bool, error) { - repoPath, err := helper.GetRepoPath(req.Repository) - if err != nil { - return false, err - } - - logsRefRepoPath := filepath.Join(repoPath, "logs", "refs") - _, err = os.Lstat(logsRefRepoPath) - - if err == nil { - return true, nil - } else if os.IsNotExist(err) { - return false, nil - } else { - return false, err - } -} - func createCachedInfoRefs(ctx context.Context, service string, req *gitalypb.InfoRefsRequest, w io.Writer) error { repoPath, err := helper.GetRepoPath(req.Repository) if err != nil { |