Skip to contentSkip to conversation

object.h: Remove obsolete struct object_refs

PATCH In review Jakob Pfender 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 object.h: Remove obsolete struct object_refs

The struct object_refs in object.h is never used anywhere, so remove it.

---
 object.h |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
object.h +0 -5
index 4d1d615..b6618d9 100644
@@ -6,11 +6,6 @@ struct object_list {
 	struct object_list *next;
 };
 
-struct object_refs {
-	unsigned count;
-	struct object *ref[FLEX_ARRAY]; /* more */
-};
-
 struct object_array {
 	unsigned int nr;
 	unsigned int alloc;
Signature · 1 line
1.7.0.4
#1 lore raw

Jakob Pfender venit, vidit, dixit 14.03.2011 17:23:

Quoted 2 lines

The struct object_refs in object.h is never used anywhere, so remove it.

Maybe you could add the information that it is unused since

7914053 (Remove unused object-ref code, 2008-02-25)

That saves everyone else a pickaxe :)

Michael

#2 lore raw
In reply to Jakob Pfender
Quoted 3 lines · Jakob Pfender

The struct object_refs in object.h is never used anywhere, so remove it.

Thanks; I'd rephrase the above like this (no need to resend):

7914053 (Remove unused object-ref code, 2008-02-25) removed all uses of the structure from the code, but forgot to remove the type definition itself.

Thanks.