]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Get rid of our 'ignore' rules
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Sep 2011 19:35:04 +0000 (12:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Sep 2011 19:35:04 +0000 (12:35 -0700)
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>
parse-xml.c

index 5ac36a1521b5b54179308de230b23e5f5a7956a0..95625d12f550cf34854c9949ca2496af08b39ea9 100644 (file)
@@ -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);
 }