[keyboard] Remove unused code

- this has already migrated to Config but had not been removed locally
This commit is contained in:
Adriaan de Groot 2020-10-27 15:56:50 +01:00
parent 35a2bd3f0f
commit 0ffa500432
2 changed files with 0 additions and 40 deletions

View File

@ -40,23 +40,6 @@ public:
LayoutItem::~LayoutItem() {}
static QPersistentModelIndex
findLayout( const KeyboardLayoutModel* klm, const QString& currentLayout )
{
QPersistentModelIndex currentLayoutItem;
for ( int i = 0; i < klm->rowCount(); ++i )
{
QModelIndex idx = klm->index( i );
if ( idx.isValid() && idx.data( KeyboardLayoutModel::KeyboardLayoutKeyRole ).toString() == currentLayout )
{
currentLayoutItem = idx;
}
}
return currentLayoutItem;
}
KeyboardPage::KeyboardPage( QWidget* parent )
: QWidget( parent )
, ui( new Ui::Page_Keyboard )
@ -92,26 +75,6 @@ KeyboardPage::~KeyboardPage()
delete ui;
}
QList< Calamares::job_ptr >
KeyboardPage::createJobs( const QString& xOrgConfFileName,
const QString& convertedKeymapPath,
bool writeEtcDefaultKeyboard )
{
QList< Calamares::job_ptr > list;
QString selectedModel = m_models.value( ui->comboBoxModel->currentText(), "pc105" );
Calamares::Job* j = new SetKeyboardLayoutJob( selectedModel,
m_selectedLayout,
m_selectedVariant,
xOrgConfFileName,
convertedKeymapPath,
writeEtcDefaultKeyboard );
list.append( Calamares::job_ptr( j ) );
return list;
}
void
KeyboardPage::guessLayout( const QStringList& langParts )
{

View File

@ -36,9 +36,6 @@ public:
explicit KeyboardPage( QWidget* parent = nullptr );
~KeyboardPage() override;
Calamares::JobList
createJobs( const QString& xOrgConfFileName, const QString& convertedKeymapPath, bool writeEtcDefaultKeyboard );
void onActivate();
protected slots: