summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/util.c b/src/util.c
index 1bd41b8..8afb185 100644
--- a/src/util.c
+++ b/src/util.c
@@ -59,7 +59,6 @@ typedef struct
ino_t ino;
enum file_id_type type;
bool queued_output;
- char *sha1;
} file_id;
/* Return an index for ENTRY into a hash table of size TABLE_SIZE. */
@@ -106,7 +105,6 @@ __insert_file_id (struct stat const *st, enum file_id_type type)
next_slot->dev = st->st_dev;
next_slot->ino = st->st_ino;
next_slot->queued_output = false;
- next_slot->sha1 = 0;
p = hash_insert (file_id_table, next_slot);
if (!p)
xalloc_die ();
@@ -164,26 +162,6 @@ has_queued_output (struct stat const *st)
return p && p->queued_output;
}
-void
-update_sha1 (struct stat const *st, char const *sha1)
-{
- file_id *p = __lookup_file_id (st);
-
- if (! p)
- p = __insert_file_id (st, UNKNOWN);
- else
- free (p->sha1);
- p->sha1 = sha1 ? xstrdup (sha1) : 0;
-}
-
-char const *
-lookup_sha1 (struct stat const *st)
-{
- file_id *p = __lookup_file_id (st);
-
- return p ? p->sha1 : NULL;
-}
-
static bool _GL_ATTRIBUTE_PURE
contains_slash (const char *s)
{