@@ -336,12 +336,6 @@ int for_each_tag_ref(each_ref_fn fn, void *cb_data)
336336 return refs_for_each_tag_ref (get_main_ref_store (), fn , cb_data );
337337}
338338
339- int for_each_tag_ref_submodule (const char * submodule , each_ref_fn fn , void * cb_data )
340- {
341- return refs_for_each_tag_ref (get_submodule_ref_store (submodule ),
342- fn , cb_data );
343- }
344-
345339int refs_for_each_branch_ref (struct ref_store * refs , each_ref_fn fn , void * cb_data )
346340{
347341 return refs_for_each_ref_in (refs , "refs/heads/" , fn , cb_data );
@@ -352,12 +346,6 @@ int for_each_branch_ref(each_ref_fn fn, void *cb_data)
352346 return refs_for_each_branch_ref (get_main_ref_store (), fn , cb_data );
353347}
354348
355- int for_each_branch_ref_submodule (const char * submodule , each_ref_fn fn , void * cb_data )
356- {
357- return refs_for_each_branch_ref (get_submodule_ref_store (submodule ),
358- fn , cb_data );
359- }
360-
361349int refs_for_each_remote_ref (struct ref_store * refs , each_ref_fn fn , void * cb_data )
362350{
363351 return refs_for_each_ref_in (refs , "refs/remotes/" , fn , cb_data );
@@ -1254,15 +1242,6 @@ int refs_head_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
12541242 return 0 ;
12551243}
12561244
1257- int head_ref_submodule (const char * submodule , each_ref_fn fn , void * cb_data )
1258- {
1259- struct ref_store * refs = get_submodule_ref_store (submodule );
1260-
1261- if (!refs )
1262- return -1 ;
1263- return refs_head_ref (refs , fn , cb_data );
1264- }
1265-
12661245int head_ref (each_ref_fn fn , void * cb_data )
12671246{
12681247 return refs_head_ref (get_main_ref_store (), fn , cb_data );
@@ -1323,11 +1302,6 @@ int for_each_ref(each_ref_fn fn, void *cb_data)
13231302 return refs_for_each_ref (get_main_ref_store (), fn , cb_data );
13241303}
13251304
1326- int for_each_ref_submodule (const char * submodule , each_ref_fn fn , void * cb_data )
1327- {
1328- return refs_for_each_ref (get_submodule_ref_store (submodule ), fn , cb_data );
1329- }
1330-
13311305int refs_for_each_ref_in (struct ref_store * refs , const char * prefix ,
13321306 each_ref_fn fn , void * cb_data )
13331307{
@@ -1349,13 +1323,6 @@ int for_each_fullref_in(const char *prefix, each_ref_fn fn, void *cb_data, unsig
13491323 prefix , fn , 0 , flag , cb_data );
13501324}
13511325
1352- int for_each_ref_in_submodule (const char * submodule , const char * prefix ,
1353- each_ref_fn fn , void * cb_data )
1354- {
1355- return refs_for_each_ref_in (get_submodule_ref_store (submodule ),
1356- prefix , fn , cb_data );
1357- }
1358-
13591326int refs_for_each_fullref_in (struct ref_store * refs , const char * prefix ,
13601327 each_ref_fn fn , void * cb_data ,
13611328 unsigned int broken )
0 commit comments