From 9eece8db289a8ab276a801235f8dc7a6ccba0133 Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Mon, 8 Jul 2024 17:51:10 +0800 Subject: [PATCH] opt: remove unused code --- src/config.cc | 12 ------------ src/config.hh | 16 ---------------- 2 files changed, 28 deletions(-) diff --git a/src/config.cc b/src/config.cc index 92cafb879..20cb9505a 100644 --- a/src/config.cc +++ b/src/config.cc @@ -176,18 +176,6 @@ bool InternalPlayerBackend::isQtmultimedia() const #endif } -ScanPopupWindowFlags spwfFromInt( int id ) -{ - if ( id == SPWF_Popup ) - return SPWF_Popup; - if ( id == SPWF_Tool ) - return SPWF_Tool; - - if ( id != SPWF_default ) - gdWarning( "Invalid ScanPopup unpinned window flags: %d\n", id ); - return SPWF_default; -} - QString Preferences::sanitizeInputPhrase( QString const & inputWord ) const { QString result = inputWord; diff --git a/src/config.hh b/src/config.hh index add8bf4a4..186529904 100644 --- a/src/config.hh +++ b/src/config.hh @@ -321,22 +321,6 @@ private: QString name; }; -#if defined( HAVE_X11 ) - // The ScanPopup window flags customization code has been tested - // only in X11 desktop environments and window managers. - // None of the window flags configurations I have tried works perfectly well - // in XFCE with Qt4. Let us enable customization code for Qt5 exclusively to - // avoid regressions with Qt4. - #define ENABLE_SPWF_CUSTOMIZATION -#endif - -enum ScanPopupWindowFlags { - SPWF_default = 0, - SPWF_Popup, - SPWF_Tool -}; -ScanPopupWindowFlags spwfFromInt( int id ); - /// Various user preferences struct Preferences {