Skip to content

Commit 5e559ce

Browse files
committed
reflog: make count_reflog_ent() file-scope static
The function has ever been used only as a helper function to implement reflog_delete(). As there are no external callers, we can make it file-scope static. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 88cf274 commit 5e559ce

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

reflog.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,11 @@ void reflog_expiry_cleanup(void *cb_data)
382382
free_commit_list(cb->mark_list);
383383
}
384384

385-
int count_reflog_ent(struct object_id *ooid UNUSED,
386-
struct object_id *noid UNUSED,
387-
const char *email UNUSED,
388-
timestamp_t timestamp, int tz UNUSED,
389-
const char *message UNUSED, void *cb_data)
385+
static int count_reflog_ent(struct object_id *ooid UNUSED,
386+
struct object_id *noid UNUSED,
387+
const char *email UNUSED,
388+
timestamp_t timestamp, int tz UNUSED,
389+
const char *message UNUSED, void *cb_data)
390390
{
391391
struct cmd_reflog_expire_cb *cb = cb_data;
392392
if (!cb->expire_total || timestamp < cb->expire_total)

reflog.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ void reflog_expiry_prepare(const char *refname, const struct object_id *oid,
3232
int should_expire_reflog_ent(struct object_id *ooid, struct object_id *noid,
3333
const char *email, timestamp_t timestamp, int tz,
3434
const char *message, void *cb_data);
35-
int count_reflog_ent(struct object_id *ooid, struct object_id *noid,
36-
const char *email, timestamp_t timestamp, int tz,
37-
const char *message, void *cb_data);
3835
int should_expire_reflog_ent_verbose(struct object_id *ooid,
3936
struct object_id *noid,
4037
const char *email,

0 commit comments

Comments
 (0)