From 7c3b44b81086c6b99f91e294c3b438dc808b47e2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 24 Aug 2023 21:28:39 +0900 Subject: Drop USE_QT4 code Signed-off-by: Michele Calgaro (cherry picked from commit 030a2248f3630fd0404df98beffc78b5b5ca4c31) --- src/kvilib/file/kvi_fileutils.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/kvilib/file/kvi_fileutils.cpp') diff --git a/src/kvilib/file/kvi_fileutils.cpp b/src/kvilib/file/kvi_fileutils.cpp index 8e81f86..9bea5c9 100644 --- a/src/kvilib/file/kvi_fileutils.cpp +++ b/src/kvilib/file/kvi_fileutils.cpp @@ -105,11 +105,7 @@ namespace KviFileUtils TQString createdDir; #ifdef COMPILE_ON_WINDOWS -#ifdef COMPILE_USE_QT4 - int idx = dir.indexOf(':'); -#else int idx = dir.find(':'); -#endif if(idx == 1) { createdDir = dir.left(2); @@ -213,20 +209,12 @@ namespace KviFileUtils { #ifdef COMPILE_ON_WINDOWS szPath.replace('/',"\\"); -#ifdef COMPILE_USE_QT4 - szPath.replace("\\\\","\\"); -#else while(szPath.find("\\\\") != -1)szPath.replace("\\\\","\\"); -#endif // FIXME: Use the default drive here ? if(szPath.startsWith("\\"))szPath.prepend("C:"); #else szPath.replace('\\',"/"); -#ifdef COMPILE_USE_QT4 - szPath.replace("//","/"); -#else while(KviTQString::find(szPath,"//") != -1)szPath.replace("//","/"); -#endif // deal with windows paths if((szPath.length() > 2) && (szPath.at(0) != TQChar('/'))) { @@ -235,11 +223,7 @@ namespace KviFileUtils szPath.remove(0,2); } } -#ifdef COMPILE_USE_QT4 - szPath=TQDir::cleanPath(szPath); -#else szPath=TQDir::cleanDirPath(szPath); -#endif #endif } -- cgit v1.2.3