summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-03-24 19:42:10 +0100
committerPatrick Steinhardt <ps@pks.im>2020-03-25 14:41:50 +0100
commit74e0489abcc7055c714f097a6bf799a527104de2 (patch)
tree08bcdf0f52b08c02a134a1821aef6412122b97a7
parentdd43571136bf9f5d7e6fba8a5bb89c9003220a55 (diff)
downloadlibgit2-74e0489abcc7055c714f097a6bf799a527104de2.tar.gz
refdb_fs: remove unused header file
The "refdb_fs.h" header contains a single struct `git_refcache` that is not used anywhere. As a result, we can just delete the header altogether as it doesn't have any purpose and may confuse readers.
-rw-r--r--src/refdb_fs.c2
-rw-r--r--src/refdb_fs.h19
2 files changed, 0 insertions, 21 deletions
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index 1e53b3af5..653cc1b97 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -5,8 +5,6 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
-#include "refdb_fs.h"
-
#include "refs.h"
#include "hash.h"
#include "repository.h"
diff --git a/src/refdb_fs.h b/src/refdb_fs.h
deleted file mode 100644
index 0c84814df..000000000
--- a/src/refdb_fs.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (C) the libgit2 contributors. All rights reserved.
- *
- * This file is part of libgit2, distributed under the GNU GPL v2 with
- * a Linking Exception. For full terms see the included COPYING file.
- */
-#ifndef INCLUDE_refdb_fs_h__
-#define INCLUDE_refdb_fs_h__
-
-#include "common.h"
-
-#include "strmap.h"
-
-typedef struct {
- git_strmap *packfile;
- time_t packfile_time;
-} git_refcache;
-
-#endif