From b676bb09686952f794bf7c51c8bb2b7b23b84405 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 7 Oct 2017 18:43:04 +0200 Subject: [PATCH] remove unused newfaction.bonus thanks to @stm2. This feature is long dead. --- src/modules/autoseed.c | 8 +++----- src/modules/autoseed.h | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/modules/autoseed.c b/src/modules/autoseed.c index 343c742ee..52a5344cc 100644 --- a/src/modules/autoseed.c +++ b/src/modules/autoseed.c @@ -147,8 +147,7 @@ newfaction *read_newfactions(const char *filename) faction *f; char race[20], email[64], lang[8], password[16]; newfaction *nf, **nfi; - int bonus = 0, subscription = 0; - int alliance = 0; + int alliance = 0, subscription = 0; if (fgets(buf, sizeof(buf), F) == NULL) break; @@ -156,8 +155,8 @@ newfaction *read_newfactions(const char *filename) email[0] = '\0'; password[0] = '\0'; - if (sscanf(buf, "%54s %20s %8s %d %d %16s %d", email, race, lang, &bonus, - &subscription, password, &alliance) < 3) { + if (sscanf(buf, "%54s %20s %8s %16s %d %d", email, race, lang, + password, &subscription, &alliance) < 3) { break; } if (email[0] == '#') { @@ -228,7 +227,6 @@ newfaction *read_newfactions(const char *filename) } } nf->lang = get_locale(lang); - nf->bonus = bonus; assert(nf->race && nf->email && nf->lang); nfi = &newfactions; while (*nfi) { diff --git a/src/modules/autoseed.h b/src/modules/autoseed.h index 65bdccb7f..937a1f8b5 100644 --- a/src/modules/autoseed.h +++ b/src/modules/autoseed.h @@ -24,7 +24,6 @@ extern "C" { char *password; const struct locale *lang; const struct race *race; - int bonus; int subscription; bool oldregions; struct alliance *allies;