summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-01 12:35:04 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-01 12:35:04 -0700
commit14d7601cdf8b5ba05c7889f6272fdad3fee03c80 (patch)
tree3f791c76c0c698383489d52a04a2cd1494ba0af2
parentda4edbcce81a9a90e414bc6281183df154019b0c (diff)
downloadsubsurface-14d7601cdf8b5ba05c7889f6272fdad3fee03c80.tar.gz
Get rid of our 'ignore' rules
I'll start doing some kind of "save unparsed things as extended items" thing, and the ignore rules were just there to get rid of some of the noise from early parsing. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--parse-xml.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 5ac36a152..95625d12f 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -300,10 +300,6 @@ static void duration(char *buffer, void *_time)
sampletime(buffer, _time);
}
-static void ignore(char *buffer, void *_time)
-{
-}
-
#define MATCH(pattern, fn, dest) \
match(pattern, strlen(pattern), name, len, fn, buf, dest)
@@ -359,16 +355,6 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
return;
if (MATCH(".cylinderendpressure", pressure, &dive->end_pressure))
return;
- if (MATCH(".divenumber", ignore, NULL))
- return;
- if (MATCH(".diveseries", ignore, NULL))
- return;
- if (MATCH(".number", ignore, NULL))
- return;
- if (MATCH(".size", ignore, NULL))
- return;
- if (MATCH(".fingerprint", ignore, NULL))
- return;
nonmatch("dive", name, buf);
}