@@ -330,11 +330,11 @@ foundCharacters: characters]; [pool release]; } - [cache removeNItems: [cache count]]; + [cache removeAllItems]; *last = *i + 1; state = OF_XMLPARSER_TAG_OPENED; } @@ -492,11 +492,11 @@ [delegate parser: self foundProcessingInstructions: pi]; [pool release]; - [cache removeNItems: [cache count]]; + [cache removeAllItems]; *last = *i + 1; state = OF_XMLPARSER_OUTSIDE_TAG; } else level = 0; @@ -586,11 +586,11 @@ pool = [[OFAutoreleasePool alloc] init]; [namespaces addObject: [OFMutableDictionary dictionary]]; [pool release]; } - [cache removeNItems: [cache count]]; + [cache removeAllItems]; *last = *i + 1; } /* Inside a close tag, no name yet */ - (void)_parseInCloseTagNameWithBuffer: (const char*)buffer @@ -633,11 +633,11 @@ @throw [OFMalformedXMLException exceptionWithClass: isa parser: self]; [previous removeLastObject]; - [cache removeNItems: [cache count]]; + [cache removeAllItems]; ns = namespace_for_prefix(prefix, namespaces); if (prefix != nil && ns == nil) @throw [OFUnboundNamespaceException exceptionWithClass: isa prefix: prefix]; @@ -775,11 +775,11 @@ attributePrefix = nil; } [pool release]; - [cache removeNItems: [cache count]]; + [cache removeAllItems]; *last = *i + 1; state = OF_XMLPARSER_EXPECT_DELIM; } @@ -835,11 +835,11 @@ namespace: attributePrefix stringValue: attributeValue]]; [pool release]; - [cache removeNItems: [cache count]]; + [cache removeAllItems]; [attributeName release]; [attributePrefix release]; attributeName = attributePrefix = nil; *last = *i + 1; @@ -949,11 +949,11 @@ [delegate parser: self foundCDATA: CDATA]; [pool release]; - [cache removeNItems: [cache count]]; + [cache removeAllItems]; *last = *i + 1; state = OF_XMLPARSER_OUTSIDE_TAG; } @@ -1003,11 +1003,11 @@ [delegate parser: self foundComment: comment]; [pool release]; - [cache removeNItems: [cache count]]; + [cache removeAllItems]; *last = *i + 1; state = OF_XMLPARSER_OUTSIDE_TAG; }