Drop addon_info.order

Nothing uses it anymore, and the reason for its existence isn't valid
anymore either since we get first upload ts from the server.
This commit is contained in:
Iris Morelle 2019-11-24 23:57:45 -03:00
parent 00c1f03406
commit 3fb3decdb0
2 changed files with 0 additions and 11 deletions

View File

@ -198,8 +198,6 @@ void read_addons_list(const config& cfg, addons_list& dest)
{
dest.clear();
unsigned order = 0;
/** @todo FIXME: get rid of this legacy "campaign"/"campaigns" silliness
*/
const config::const_child_itors &addon_cfgs = cfg.child_range("campaign");
@ -210,7 +208,6 @@ void read_addons_list(const config& cfg, addons_list& dest)
continue;
}
dest[id].read(addon_cfg);
dest[id].order = order++;
}
}

View File

@ -57,11 +57,6 @@ struct addon_info
std::time_t updated;
std::time_t created;
// Artificial upload order index used to preserve add-ons upload order
// until we have actual first-upload timestamps implemented. This index
// is not serialized anywhere.
unsigned order;
// Flag to indicate whether this object was generaled from pbl info for an addon
// not previously published.
bool local_only;
@ -75,7 +70,6 @@ struct addon_info
, feedback_url()
, updated()
, created()
, order()
, local_only(false)
{}
@ -88,7 +82,6 @@ struct addon_info
, feedback_url()
, updated()
, created()
, order()
, local_only(false)
{
this->read(cfg);
@ -113,7 +106,6 @@ struct addon_info
this->feedback_url = o.feedback_url;
this->updated = o.updated;
this->created = o.created;
this->order = o.order;
this->local_only = o.local_only;
}
return *this;