diff options
author | Michael Schroeder <mls@suse.de> | 2014-04-16 13:56:41 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-04-16 13:56:41 +0200 |
commit | cb11f93cb0f785bd19a04a14f9242bc99c4dc187 (patch) | |
tree | ea791037c1833ce7be65911b7c8a17f7975d6967 /ext | |
parent | e831ddcee12a69a51b41eecb14faaa7328d9f86b (diff) | |
download | libsolv-cb11f93cb0f785bd19a04a14f9242bc99c4dc187.tar.gz libsolv-cb11f93cb0f785bd19a04a14f9242bc99c4dc187.tar.bz2 libsolv-cb11f93cb0f785bd19a04a14f9242bc99c4dc187.zip |
remove unneded repodata_extend calls
Diffstat (limited to 'ext')
-rw-r--r-- | ext/repo_content.c | 3 | ||||
-rw-r--r-- | ext/repo_zyppdb.c | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/ext/repo_content.c b/ext/repo_content.c index 2ce6940..e94ca9e 100644 --- a/ext/repo_content.c +++ b/ext/repo_content.c @@ -408,7 +408,6 @@ repo_add_content(Repo *repo, FILE *fp, int flags) } /* create new solvable */ s = pool_id2solvable(pool, repo_add_solvable(repo)); - repodata_extend(data, s - pool->solvables); handle = s - pool->solvables; s->name = pool_str2id(pool, join(&pd, "product", ":", value), 1); if (datadir) @@ -425,7 +424,6 @@ repo_add_content(Repo *repo, FILE *fp, int flags) if (!s) { s = pool_id2solvable(pool, repo_add_solvable(repo)); - repodata_extend(data, s - pool->solvables); handle = s - pool->solvables; } @@ -546,7 +544,6 @@ repo_add_content(Repo *repo, FILE *fp, int flags) for (i = 0; i < numotherarchs; ++i) { Solvable *p = pool_id2solvable(pool, repo_add_solvable(repo)); - repodata_extend(data, p - pool->solvables); p->name = s->name; p->evr = s->evr; p->vendor = s->vendor; diff --git a/ext/repo_zyppdb.c b/ext/repo_zyppdb.c index 207f563..5200c29 100644 --- a/ext/repo_zyppdb.c +++ b/ext/repo_zyppdb.c @@ -161,7 +161,6 @@ startElement(void *userData, const char *name, const char **atts) /* parse 'type' */ const char *type = find_attr("type", atts); s = pd->solvable = pool_id2solvable(pool, repo_add_solvable(pd->repo)); - repodata_extend(pd->data, s - pool->solvables); pd->handle = s - pool->solvables; if (type) repodata_set_str(pd->data, pd->handle, PRODUCT_TYPE, type); |