Commit c8ad1e48 authored by Bernhard Link's avatar Bernhard Link

remove distribution_foreach_part, because it has no users left

parent 5bdebb2a
......@@ -416,23 +416,6 @@ retvalue distribution_readall(const char *confdir, const char *logdir, struct di
return RET_OK;
}
/* call <action> for each part of <distribution>. */
retvalue distribution_foreach_part(struct distribution *distribution,const char *component,const char *architecture,const char *packagetype,distribution_each_action action,void *data) {
retvalue result,r;
struct target *t;
result = RET_NOTHING;
for( t = distribution->targets ; t != NULL ; t = t->next ) {
if( !target_matches(t, component, architecture, packagetype) )
continue;
r = action(data,t,distribution);
RET_UPDATE(result,r);
if( RET_WAS_ERROR(r) )
return result;
}
return result;
}
/* call <action> for each part of <distribution>, within initpackagesdb/closepackagesdb */
retvalue distribution_foreach_rwopenedpart(struct distribution *distribution,struct database *database,const char *component,const char *architecture,const char *packagetype,distribution_each_action action,void *data) {
retvalue result,r;
......
......@@ -99,10 +99,6 @@ retvalue distribution_prepareforwriting(struct distribution *distribution);
typedef retvalue distribution_each_action(void *data, struct target *t, struct distribution *d);
/* call <action> for each part of <distribution>, if component or architecture is
* not NULL or "all", only do those parts */
retvalue distribution_foreach_part(struct distribution *distribution,/*@null@*/const char *component,/*@null@*/const char *architecture,/*@null@*/const char *packagetype,distribution_each_action action,/*@null@*/void *data);
typedef retvalue each_target_action(struct database *, struct distribution *, struct target *, void *);
typedef retvalue each_package_action(struct database *, struct distribution *, struct target *, const char *, const char *, void *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment