Index: include/xml/SkXMLParser.h |
diff --git a/include/xml/SkXMLParser.h b/include/xml/SkXMLParser.h |
index 1a90bf71e797836faa5a09732bbd3d9a0a4910ad..2974fb57cf38e88166cbc235fb6323d066a94ba9 100644 |
--- a/include/xml/SkXMLParser.h |
+++ b/include/xml/SkXMLParser.h |
@@ -84,72 +84,4 @@ private: |
void reportError(void* parser); |
}; |
-#if 0 |
-class SkXMLPullParser { |
-public: |
- SkXMLPullParser(); |
- explicit SkXMLPullParser(SkStream*); |
- virtual ~SkXMLPullParser(); |
- |
- SkStream* getStream() const { return fStream; } |
- SkStream* setStream(SkStream* stream); |
- |
- enum EventType { |
- ERROR = -1, |
- START_DOCUMENT, |
- END_DOCUMENT, |
- START_TAG, |
- END_TAG, |
- TEXT, |
- CDSECT, |
- ENTITY_REF, |
- IGNORABLE_WHITESPACE, |
- PROCESSING_INSTRUCTION, |
- COMMENT, |
- DOCDECL |
- }; |
- |
- EventType nextToken(); |
- EventType getEventType() const { return fCurr.fEventType; } |
- |
- struct AttrInfo { |
- const char* fName; |
- const char* fValue; |
- }; |
- |
- int getDepth() const { return fDepth; } |
- const char* getName(); |
- int getAttributeCount(); |
- void getAttributeInfo(int, AttrInfo*); |
- const char* getText(); |
- bool isWhitespace(); |
- |
-protected: |
- virtual bool onEntityReplacement(const char name[], |
- SkString* replacement); |
- |
-public: |
- struct Curr { |
- EventType fEventType; |
- const char* fName; |
- AttrInfo* fAttrInfos; |
- int fAttrInfoCount; |
- bool fIsWhitespace; |
- }; |
- |
-private: |
- // implemented in the porting layer |
- bool onInit(); // return false on failure |
- EventType onNextToken(); |
- void onExit(); |
- |
- SkStream* fStream; |
- Curr fCurr; |
- int fDepth; |
- |
- struct Impl; |
- Impl* fImpl; |
-}; |
-#endif |
- |
#endif |