diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-11-30 13:56:10 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-30 13:56:10 -0700 |
commit | 15edba9ab0c50cbd5ee8654c6a0383052d66838f (patch) | |
tree | 60366475aa0503d1786fe6bc5c9d8faf0e58bcc9 /parse-xml.c | |
parent | 1bc4aba8e7aa819a235a57f8fc228f74f1fb414d (diff) | |
download | subsurface-15edba9ab0c50cbd5ee8654c6a0383052d66838f.tar.gz |
Remove the hack to mark parsed XML files as downloaded
This was necessary for the Uemis downloader when we used the SDA file
format as intermediary data format and imported that as XML buffer.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/parse-xml.c b/parse-xml.c index 960011ddf..9226aa63d 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -168,7 +168,6 @@ static struct { } cur_event; static struct tm cur_tm; static int cur_cylinder_index, cur_ws_index; -static gboolean from_download; static enum import_source { UNKNOWN, @@ -949,7 +948,6 @@ static void dive_start(void) add_dive_to_trip(cur_dive, cur_trip); cur_dive->tripflag = IN_TRIP; } - cur_dive->downloaded = from_download; } static void dive_end(void) @@ -1267,10 +1265,9 @@ static void reset_all(void) import_source = UNKNOWN; } -void parse_xml_buffer(const char *url, const char *buffer, int size, gboolean downloaded, GError **error) +void parse_xml_buffer(const char *url, const char *buffer, int size, GError **error) { xmlDoc *doc; - from_download = downloaded; doc = xmlReadMemory(buffer, size, url, NULL, 0); if (!doc) { |