Skip to content

Commit

Permalink
Merge pull request #1653 from xiaoyifang/opt/remove-unused
Browse files Browse the repository at this point in the history
opt: remove unused code
  • Loading branch information
xiaoyifang authored Jul 9, 2024
2 parents 61e1be9 + 9eece8d commit dcf4ff3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
12 changes: 0 additions & 12 deletions src/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 0 additions & 16 deletions src/config.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit dcf4ff3

Please sign in to comment.