summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_cmdformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/ext/kvi_cmdformatter.cpp')
-rw-r--r--src/kvilib/ext/kvi_cmdformatter.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/kvilib/ext/kvi_cmdformatter.cpp b/src/kvilib/ext/kvi_cmdformatter.cpp
index 153557b2..2866ae04 100644
--- a/src/kvilib/ext/kvi_cmdformatter.cpp
+++ b/src/kvilib/ext/kvi_cmdformatter.cpp
@@ -63,11 +63,7 @@ namespace KviCommandFormatter
} else {
// we pretend this line to be empty
TQString tmp = *it;
-#ifdef COMPILE_USE_QT4
- tmp = tmp.trimmed();
-#else
tmp = tmp.stripWhiteSpace();
-#endif
if(!tmp.isEmpty())return false;
*it = ""; // set it to empty also in the main buffer
}
@@ -127,11 +123,7 @@ namespace KviCommandFormatter
void unindent(TQString &buffer)
{
-#ifdef COMPILE_USE_QT4
- TQStringList list = buffer.split("\n",TQString::KeepEmptyParts);
-#else
TQStringList list = TQStringList::split("\n",buffer,true);
-#endif
while(hasLeadingChars(list,TQChar('\t')) || hasLeadingChars(list,TQChar(' ')))trimLeading(list);
//buffer = list.join("\n"); join implementation sux :D
// we WANT the last newline
@@ -162,11 +154,7 @@ namespace KviCommandFormatter
void bufferFromBlock(TQString &buffer)
{
-#ifdef COMPILE_USE_QT4
- buffer = buffer.trimmed();
-#else
buffer = buffer.stripWhiteSpace();
-#endif
if(buffer.isEmpty())return;
@@ -180,11 +168,7 @@ namespace KviCommandFormatter
unindent(buffer);
-#ifdef COMPILE_USE_QT4
- buffer = buffer.trimmed();
-#else
buffer = buffer.stripWhiteSpace();
-#endif
}
@@ -203,11 +187,7 @@ namespace KviCommandFormatter
void indent(TQString &buffer)
{
-#ifdef COMPILE_USE_QT4
- TQStringList list = buffer.split("\n",TQString::KeepEmptyParts);
-#else
TQStringList list = TQStringList::split("\n",buffer,true);
-#endif
addLeading(list,TQChar('\t'));
//buffer = list.join("\n"); join implementation sux :D
// we WANT the last newline