diff options
| author | Patrick Steinhardt <ps@pks.im> | 2017-10-11 10:29:11 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-06-22 09:50:07 +0200 |
| commit | 4e8dc055b6ec0a960f112178e81b56c8b464fe8c (patch) | |
| tree | f0ca38d9d3c33c7e5a3ed7461d927791b07ab134 /src/pack-objects.h | |
| parent | e212011b9872c52f6205d3a30b10f753c3108918 (diff) | |
| download | libgit2-4e8dc055b6ec0a960f112178e81b56c8b464fe8c.tar.gz | |
pack-objects: make `git_walk_object` internal to pack-objects
The `git_walk_objects` structure is currently only being used inside of
the pack-objects.c file, but being declared in its header. This has
actually been the case since its inception in 04a36feff (pack-objects:
fill a packbuilder from a walk, 2014-10-11) and has never really
changed.
Move the struct declaration into pack-objects.c to improve code
encapsulation.
Diffstat (limited to 'src/pack-objects.h')
| -rw-r--r-- | src/pack-objects.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pack-objects.h b/src/pack-objects.h index c9cd5777a..a931f3f86 100644 --- a/src/pack-objects.h +++ b/src/pack-objects.h @@ -52,12 +52,6 @@ typedef struct git_pobject { filled:1; } git_pobject; -typedef struct { - git_oid id; - unsigned int uninteresting:1, - seen:1; -} git_walk_object; - struct git_packbuilder { git_repository *repo; /* associated repository */ git_odb *odb; /* associated object database */ |
