summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-07-20 00:21:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-07-20 21:54:08 (GMT)
commit092c55d0940420a705e0fa0708ec846babab6d3d (patch)
treec0dbe34f9a0ebb331459ac7fe428969aaa272226 /object.c
parentad2db4030e42890e569de529e3cd61a8d03de497 (diff)
downloadgit-092c55d0940420a705e0fa0708ec846babab6d3d.zip
git-092c55d0940420a705e0fa0708ec846babab6d3d.tar.gz
git-092c55d0940420a705e0fa0708ec846babab6d3d.tar.bz2
object: remove "used" field from struct object
The "used" field in struct object is only used by builtin/fsck. Remove that field and modify builtin/fsck to use a flag instead. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.c')
-rw-r--r--object.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/object.c b/object.c
index f818777..321d7e9 100644
--- a/object.c
+++ b/object.c
@@ -141,7 +141,6 @@ void *create_object(const unsigned char *sha1, void *o)
struct object *obj = o;
obj->parsed = 0;
- obj->used = 0;
obj->flags = 0;
hashcpy(obj->oid.hash, sha1);