[Libreoffice-commits] .: shell/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 15 08:39:07 PST 2012
shell/source/all/xml_parser.cxx | 22 ----------------------
1 file changed, 22 deletions(-)
New commits:
commit f1dfc1f23f83f410172170d7b80d8f987f04635a
Author: Tor Lillqvist <tml at iki.fi>
Date: Thu Nov 15 18:38:16 2012 +0200
Bin leftover debugging printout
Change-Id: I9ff9f53cedb34ff896104b39322edab91aa5cbdc
diff --git a/shell/source/all/xml_parser.cxx b/shell/source/all/xml_parser.cxx
index 23e43d5..e88abf6 100644
--- a/shell/source/all/xml_parser.cxx
+++ b/shell/source/all/xml_parser.cxx
@@ -123,8 +123,6 @@ static void xml_end_element_handler(void* UserData, const XML_Char* name)
static void xml_character_data_handler(void* UserData, const XML_Char* s, int len)
{
- static int count = 0;
-
assert(UserData);
xml_parser* pImpl = get_parser_instance(UserData);
@@ -136,26 +134,6 @@ static void xml_character_data_handler(void* UserData, const XML_Char* s, int le
else
pDocHdl->characters(UTF8ToWString(std::string(reinterpret_cast<const char*>(s), len)));
}
-#if 0
- if (count < 5) {
- char buf[1000];
- sprintf(buf,
- "%s: len=%d\n"
- "s=%.10s\n"
- "pDocHdl=%p has_only_whitespaces()=%d\n"
- "string=%S",
- "xml_character_data_handler",
- len,
- s,
- pDocHdl,
- has_only_whitespaces(s,len),
- UTF8ToWString(std::string(reinterpret_cast<const char*>(s), len)).c_str()
- );
-
- MessageBoxA(NULL, buf, "xml_character_data_handler", MB_OK);
- count++;
- }
-#endif
}
static void xml_comment_handler(void* UserData, const XML_Char* Data)
More information about the Libreoffice-commits
mailing list