Skip to content

Commit

Permalink
Remove unused is_empty_hg_file
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Nov 13, 2023
1 parent a2bef64 commit 3a0c5bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/hg-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,9 @@
#include "git-compat-util.h"
#include "hg-data.h"

static const struct hg_object_id empty_hg_file = {{
0xb8, 0x0d, 0xe5, 0xd1, 0x38, 0x75, 0x85, 0x41, 0xc5, 0xf0,
0x52, 0x65, 0xad, 0x14, 0x4a, 0xb9, 0xfa, 0x86, 0xd1, 0xdb,
}};

const struct hg_object_id hg_null_oid = {{ 0, }};

int is_null_hg_oid(const struct hg_object_id *oid)
{
return hg_oideq(&hg_null_oid, oid);
}

int is_empty_hg_file(const struct hg_object_id *oid)
{
return hg_oideq(&empty_hg_file, oid);
}
2 changes: 0 additions & 2 deletions src/hg-data.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,4 @@ static inline void oidcpy2hg(struct hg_object_id *dst,

int is_null_hg_oid(const struct hg_object_id *oid);

int is_empty_hg_file(const struct hg_object_id *oid);

#endif

0 comments on commit 3a0c5bf

Please sign in to comment.