From 03a8f728607ab2a5343a104dfee44d20aad121cf Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Tue, 10 Mar 2026 17:52:01 +0900
Subject: Remove use of TDE_VERSION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 src/kbibtex_part.cpp |  2 --
 src/kbibtexshell.cpp | 16 ----------------
 2 files changed, 18 deletions(-)

diff --git a/src/kbibtex_part.cpp b/src/kbibtex_part.cpp
index bf8d80d..d87327c 100644
--- a/src/kbibtex_part.cpp
+++ b/src/kbibtex_part.cpp
@@ -339,11 +339,9 @@ void KBibTeXPart::slotFileExport()
 
         if ( error )
         {
-#if (TDE_VERSION_MINOR>=4) && (TDE_VERSION_MAJOR>=3)
             if ( !errorLog.empty() )
                 KMessageBox::errorList( widget(), TQString( i18n( "File could not be exported in '%1'." ) ).arg( exportURL.prettyURL() ).append( i18n( "\n\nSee the following error log for details." ) ), errorLog, i18n( "Exporting failed" ) );
             else
-#endif
                 KMessageBox::error( widget(), TQString( i18n( "File could not be exported to '%1'." ) ).arg( exportURL.prettyURL() ), i18n( "Exporting failed" ) );
         }
 
diff --git a/src/kbibtexshell.cpp b/src/kbibtexshell.cpp
index 7e672b5..780bbf2 100644
--- a/src/kbibtexshell.cpp
+++ b/src/kbibtexshell.cpp
@@ -248,15 +248,7 @@ void KBibTeXShell::optionsConfigureKeys()
 
 void KBibTeXShell::optionsConfigureToolbars()
 {
-#if defined(TDE_MAKE_VERSION)
-# if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
     saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
-# else
-    saveMainWindowSettings( TDEGlobal::config() );
-# endif
-#else
-    saveMainWindowSettings( TDEGlobal::config() );
-#endif
 
     // use the standard toolbar editor
     KEditToolbar dlg( factory() );
@@ -267,15 +259,7 @@ void KBibTeXShell::optionsConfigureToolbars()
 
 void KBibTeXShell::applyNewToolbarConfig()
 {
-#if defined(TDE_MAKE_VERSION)
-# if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
     applyMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
-# else
-    applyMainWindowSettings( TDEGlobal::config() );
-# endif
-#else
-    applyMainWindowSettings( TDEGlobal::config() );
-#endif
 }
 
 bool KBibTeXShell::queryClose()
-- 
cgit v1.2.3

