diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-02 23:03:44 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-04 08:05:09 -0700 |
commit | 21d78121ade941adf9eaad399e6b8146298b421f (patch) | |
tree | 56cc4109f116d7b667163e960fcc7936fdf4c6aa /core/load-git.c | |
parent | de10fd4021f7fa7e203782df29456c09e07165e8 (diff) | |
download | subsurface-21d78121ade941adf9eaad399e6b8146298b421f.tar.gz |
Don't add separate country field, use taxonomy
The more I looked at the code that added the country to the dive site,
the more it seemed redundant given what we have with the taxonomy.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/load-git.c b/core/load-git.c index c77d4c05d..e7732a69f 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -293,9 +293,6 @@ static void parse_dive_notrip(char *line, struct membuffer *str, void *_dive) struct dive *dive = _dive; dive->tripflag = NO_TRIP; } -static void parse_site_country(char *line, struct membuffer *str, void *_ds) -{ (void) line; struct dive_site *ds = _ds; ds->country = strdup(mb_cstring(str)); } - static void parse_site_description(char *line, struct membuffer *str, void *_ds) { (void) line; struct dive_site *ds = _ds; ds->description = strdup(mb_cstring(str)); } @@ -997,7 +994,7 @@ static void dive_parser(char *line, struct membuffer *str, void *_dive) struct keyword_action site_action[] = { #undef D #define D(x) { #x, parse_site_ ## x } - D(country), D(description), D(geo), D(gps), D(name), D(notes) + D(description), D(geo), D(gps), D(name), D(notes) }; static void site_parser(char *line, struct membuffer *str, void *_ds) |