Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 14, 2022
1 parent 15d7c8a commit 610a0a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
27 changes: 0 additions & 27 deletions src/app/georeferencer/qgstransformsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,33 +277,6 @@ QString QgsTransformSettingsDialog::generateModifiedRasterFileName( const QStrin
return modifiedFileName;
}

// Note this code is duplicated from qgisapp.cpp because
// I didn't want to make plugins on qgsapplication [TS]
QIcon QgsTransformSettingsDialog::getThemeIcon( const QString &name )
{
if ( QFile::exists( QgsApplication::activeThemePath() + name ) )
{
return QIcon( QgsApplication::activeThemePath() + name );
}
else if ( QFile::exists( QgsApplication::defaultThemePath() + name ) )
{
return QIcon( QgsApplication::defaultThemePath() + name );
}
else
{
QgsSettings settings;
QString themePath = ":/icons/" + settings.value( QStringLiteral( "Themes" ) ).toString() + name;
if ( QFile::exists( themePath ) )
{
return QIcon( themePath );
}
else
{
return QIcon( ":/icons/default" + name );
}
}
}

void QgsTransformSettingsDialog::showHelp()
{
QgsHelp::openHelp( QStringLiteral( "working_with_raster/georeferencer.html#defining-the-transformation-settings" ) );
Expand Down
1 change: 0 additions & 1 deletion src/app/georeferencer/qgstransformsettingsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class QgsTransformSettingsDialog : public QDialog, private Ui::QgsTransformSetti
private slots:
void cmbTransformType_currentIndexChanged( const QString &text );
void mWorldFileCheckBox_stateChanged( int state );
QIcon getThemeIcon( const QString &name );
void showHelp();

private:
Expand Down

0 comments on commit 610a0a6

Please sign in to comment.