summaryrefslogtreecommitdiffstats
path: root/quanta
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-10-13 01:55:18 +0200
committerSlávek Banko <slavek.banko@axis.cz>2022-10-13 01:55:18 +0200
commitf4859ad13cd26b31e44d981bd0d55a9fa19c7aab (patch)
tree1a3232e62b26a4759483a07417bcbe0b704defe6 /quanta
parentaecfb2bff4ca6ce3624fb7c6f913511ef7a2cdbc (diff)
downloadtdewebdev-f4859ad13cd26b31e44d981bd0d55a9fa19c7aab.tar.gz
tdewebdev-f4859ad13cd26b31e44d981bd0d55a9fa19c7aab.zip
Remove code to support libxml2 < 2.6.
Enable LIBXML_DOCB_ENABLED independently of the presence of 'libxml/DOCBparser.h' because from libxml2 >= 2.6 for docbook files are not used deprecated functions from DOCBparser, so 'libxml/DOCBparser.h' is not needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'quanta')
-rw-r--r--quanta/parsers/dtd/dtdparser.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/quanta/parsers/dtd/dtdparser.cpp b/quanta/parsers/dtd/dtdparser.cpp
index 0562f61e..4f1b9d14 100644
--- a/quanta/parsers/dtd/dtdparser.cpp
+++ b/quanta/parsers/dtd/dtdparser.cpp
@@ -36,10 +36,6 @@
#include <tdeio/netaccess.h>
//other includes
-#ifdef LIBXML_2_5
-#include <libxml/hash.h>
-#endif
-
#include <libxml/parser.h>
#include <libxml/valid.h>
@@ -86,7 +82,6 @@ bool DTDParser::parse(const TQString &targetDir, bool entitiesOnly)
if( DTD::dtd_ptr == NULL )
{
TQString errorStr = i18n("Unknown");
-#ifndef LIBXML_2_5
xmlErrorPtr errorPtr = xmlGetLastError();
if (errorPtr != NULL)
{
@@ -105,7 +100,6 @@ bool DTDParser::parse(const TQString &targetDir, bool entitiesOnly)
errorStr += TQString("(%1, %2)").arg(errorPtr->line).arg(errorPtr->int2);
xmlResetError(errorPtr);
}
-#endif
KMessageBox::error(0, i18n("<qt>Error while parsing the DTD.<br>The error message is:<br><i>%1</i></qt>").arg(errorStr));
return false;
}