[utilities/krusader] /: Dissolve no longer needed compat helper macro COMPRESSIONTYPEFORMIMETYPE

Toni Asensi Esteve <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4432f627d3ffc9e0c1eb654f17545247bf36259e by Toni Asensi Esteve, on behalf of Friedrich W. H. Kossebau.
Committed on 19/07/2026 at 23:02.
Pushed by asensi into branch 'master'.

Dissolve no longer needed compat helper macro COMPRESSIONTYPEFORMIMETYPE

M  +0    -14   app/compat.h
M  +1    -1    plugins/iso/kiso.cpp

https://invent.kde.org/utilities/krusader/-/commit/4432f627d3ffc9e0c1eb654f17545247bf36259e

diff --git a/app/compat.h b/app/compat.h
index 7631d60cd..1b28fed43 100644
--- a/app/compat.h
+++ b/app/compat.h
@@ -7,20 +7,6 @@
 #ifndef _COMPAT_H_
 #define _COMPAT_H_
 
-#include <karchive_version.h>
-
-/**
- * KFilterDev::compressionTypeForMimeType has been deprecated since 5.85
- * in favor of KLineEdit::returnKeyPressed.
- *
- * This can be removed when the frameworks minimum version required will be >= 5.85
- */
-#if KARCHIVE_VERSION >= QT_VERSION_CHECK(5, 85, 0)
-#define COMPRESSIONTYPEFORMIMETYPE KCompressionDevice::compressionTypeForMimeType
-#else
-#define COMPRESSIONTYPEFORMIMETYPE KFilterDev::compressionTypeForMimeType
-#endif
-
 /**
  * QButtonGroup::buttonClicked(int id) was made obsoleted in QT 5.15 in
  * favor of QButtonGroup::idClicked(int id)
diff --git a/plugins/iso/kiso.cpp b/plugins/iso/kiso.cpp
index f28fe0083..ae0f85d52 100644
--- a/plugins/iso/kiso.cpp
+++ b/plugins/iso/kiso.cpp
@@ -164,7 +164,7 @@ void KIso::prepareDevice(const QString &filename, const QString &mimetype, bool
         if (mimetype.isEmpty()) {
             device = new KCompressionDevice(filename);
         } else {
-            device = new KCompressionDevice(filename, COMPRESSIONTYPEFORMIMETYPE(mimetype));
+            device = new KCompressionDevice(filename, KCompressionDevice::compressionTypeForMimeType(mimetype));
         }
         if (device->compressionType() == KCompressionDevice::None && forced) {
             delete device;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.