@@ -119,7 +119,6 @@ struct expand_data {
119119 enum object_type type ;
120120 unsigned long size ;
121121 unsigned long disk_size ;
122- const char * rest ;
123122
124123 /*
125124 * If mark_query is true, we do not expand anything, but rather
@@ -164,9 +163,6 @@ static void expand_atom(struct strbuf *sb, const char *atom, int len,
164163 data -> info .disk_sizep = & data -> disk_size ;
165164 else
166165 strbuf_addf (sb , "%lu" , data -> disk_size );
167- } else if (is_atom ("rest" , atom , len )) {
168- if (!data -> mark_query && data -> rest )
169- strbuf_addstr (sb , data -> rest );
170166 } else
171167 die ("unknown format element: %.*s" , len , atom );
172168}
@@ -277,21 +273,7 @@ static int batch_objects(struct batch_options *opt)
277273 warn_on_object_refname_ambiguity = 0 ;
278274
279275 while (strbuf_getline (& buf , stdin , '\n' ) != EOF ) {
280- char * p ;
281- int error ;
282-
283- /*
284- * Split at first whitespace, tying off the beginning of the
285- * string and saving the remainder (or NULL) in data.rest.
286- */
287- p = strpbrk (buf .buf , " \t" );
288- if (p ) {
289- while (* p && strchr (" \t" , * p ))
290- * p ++ = '\0' ;
291- }
292- data .rest = p ;
293-
294- error = batch_one_object (buf .buf , opt , & data );
276+ int error = batch_one_object (buf .buf , opt , & data );
295277 if (error )
296278 return error ;
297279 }
0 commit comments