# [PATCH] object.h: Remove obsolete struct object_refs

3 messages from 2011-03-14 to 2011-03-14. Participants: Jakob Pfender, Michael J Gruber, Junio C Hamano.
Thread: https://gitlist.dev/t/26727

## Jakob Pfender, 2011-03-14 16:23

Subject: [PATCH] object.h: Remove obsolete struct object_refs
Message-ID: <4D7E4118.6060802@elegosoft.com>
URL: https://gitlist.dev/e/4D7E4118.6060802%40elegosoft.com

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

Signed-off-by: Jakob Pfender <jpfender@elegosoft.com>
---
  object.h |    5 -----
  1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/object.h b/object.h
index 4d1d615..b6618d9 100644
--- a/object.h
+++ b/object.h
@@ -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;
-- 
1.7.0.4

```

## Michael J Gruber, 2011-03-14 17:03

Subject: Re: [PATCH] object.h: Remove obsolete struct object_refs
Message-ID: <4D7E4A45.3060703@drmicha.warpmail.net>
URL: https://gitlist.dev/e/4D7E4A45.3060703%40drmicha.warpmail.net
In-Reply-To: <4D7E4118.6060802@elegosoft.com>

```
Jakob Pfender venit, vidit, dixit 14.03.2011 17:23:
> 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

```

## Junio C Hamano, 2011-03-14 17:48

Subject: Re: [PATCH] object.h: Remove obsolete struct object_refs
Message-ID: <7voc5degp2.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7voc5degp2.fsf%40alter.siamese.dyndns.org
In-Reply-To: <4D7E4118.6060802@elegosoft.com>

```
Jakob Pfender <jpfender@elegosoft.com> writes:

> The struct object_refs in object.h is never used anywhere, so remove it.
>
> Signed-off-by: Jakob Pfender <jpfender@elegosoft.com>

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.



	

```
