]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/xml2txt/DOMTreeErrorReporter.cpp
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / samples / xml2txt / DOMTreeErrorReporter.cpp
diff --git a/icuSources/samples/xml2txt/DOMTreeErrorReporter.cpp b/icuSources/samples/xml2txt/DOMTreeErrorReporter.cpp
deleted file mode 100644 (file)
index 9e503e3..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/******************************************************************************
- * Copyright (C) 2002, International Business Machines Corporation and
- * others. All Rights Reserved.
- ******************************************************************************/
-// ---------------------------------------------------------------------------
-//  Includes
-// ---------------------------------------------------------------------------
-#include <sax/SAXParseException.hpp>
-#include "DOMTreeErrorReporter.hpp"
-#include <iostream.h>
-#include <stdlib.h>
-#include <string.h>
-#include <dom/DOMString.hpp>
-
-extern ostream& operator<<(ostream& target, const DOMString& s);
-
-void DOMTreeErrorReporter::warning(const SAXParseException&)
-{
-}
-
-void DOMTreeErrorReporter::error(const SAXParseException& toCatch)
-{
-    fSawErrors = true;
-    cerr << "Error at file \"" << DOMString(toCatch.getSystemId())
-                << "\", line " << toCatch.getLineNumber()
-                << ", column " << toCatch.getColumnNumber()
-         << "\n   Message: " << DOMString(toCatch.getMessage()) << endl;
-}
-
-void DOMTreeErrorReporter::fatalError(const SAXParseException& toCatch)
-{
-    fSawErrors = true;
-    cerr << "Fatal Error at file \"" << DOMString(toCatch.getSystemId())
-                << "\", line " << toCatch.getLineNumber()
-                << ", column " << toCatch.getColumnNumber()
-         << "\n   Message: " << DOMString(toCatch.getMessage()) << endl;
-}
-
-void DOMTreeErrorReporter::resetErrors()
-{
-}