diff options
author | 2016-04-09 11:09:49 -0700 | |
---|---|---|
committer | 2016-04-09 11:09:49 -0700 | |
commit | 9d77d62c0c2824fdc5aac20cc58a9c91b62da5c5 (patch) | |
tree | 88ee0aab794da77bf4aa393fd5e8b904834fbb16 /include | |
parent | 12fa47d33f1e9eb69bb20d9daad2eccfc7288944 (diff) |
remove unused BML (binary xml) code
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1868423002
TBR=
Review URL: https://codereview.chromium.org/1868423002
Diffstat (limited to 'include')
-rw-r--r-- | include/xml/SkBML_WXMLParser.h | 46 | ||||
-rw-r--r-- | include/xml/SkBML_XMLParser.h | 31 |
2 files changed, 0 insertions, 77 deletions
diff --git a/include/xml/SkBML_WXMLParser.h b/include/xml/SkBML_WXMLParser.h deleted file mode 100644 index 20239c2b6d..0000000000 --- a/include/xml/SkBML_WXMLParser.h +++ /dev/null @@ -1,46 +0,0 @@ - -/* - * Copyright 2006 The Android Open Source Project - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - - -#ifndef SkBML_WXMLParser_DEFINED -#define SkBML_WXMLParser_DEFINED - -#include "SkString.h" -#include "SkXMLParser.h" - -class SkStream; -class SkWStream; - -class BML_WXMLParser : public SkXMLParser { -public: - BML_WXMLParser(SkWStream& writer); - virtual ~BML_WXMLParser(); - static void Write(SkStream& s, const char filename[]); - - /** @cond UNIT_TEST */ - SkDEBUGCODE(static void UnitTest();) - /** @endcond */ -private: - virtual bool onAddAttribute(const char name[], const char value[]); - virtual bool onEndElement(const char name[]); - virtual bool onStartElement(const char name[]); - BML_WXMLParser& operator=(const BML_WXMLParser& src); -#ifdef SK_DEBUG - int fElemsCount, fElemsReused; - int fAttrsCount, fNamesReused, fValuesReused; -#endif - SkWStream& fWriter; - char* fElems[256]; - char* fAttrNames[256]; - char* fAttrValues[256]; - - // important that these are U8, so we get automatic wrap-around - uint8_t fNextElem, fNextAttrName, fNextAttrValue; -}; - -#endif // SkBML_WXMLParser_DEFINED diff --git a/include/xml/SkBML_XMLParser.h b/include/xml/SkBML_XMLParser.h deleted file mode 100644 index 9bdbf51282..0000000000 --- a/include/xml/SkBML_XMLParser.h +++ /dev/null @@ -1,31 +0,0 @@ - -/* - * Copyright 2006 The Android Open Source Project - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - - -#ifndef SkBML_XMLParser_DEFINED -#define SkBML_XMLParser_DEFINED - -class SkStream; -class SkWStream; -class SkXMLParser; -class SkXMLWriter; - -class BML_XMLParser { -public: - /** Read the byte XML stream and write the decompressed XML. - */ - static void Read(SkStream& s, SkXMLWriter& writer); - /** Read the byte XML stream and write the decompressed XML into a writable stream. - */ - static void Read(SkStream& s, SkWStream& output); - /** Read the byte XML stream and write the decompressed XML into an XML parser. - */ - static void Read(SkStream& s, SkXMLParser& output); -}; - -#endif // SkBML_XMLParser_DEFINED |