keyboard: removeEmpty doesn't need to be a method
This commit is contained in:
parent
55a2d71e3e
commit
b85fcff990
@ -29,6 +29,15 @@
|
||||
#include <QSettings>
|
||||
#include <QTextStream>
|
||||
|
||||
namespace
|
||||
{
|
||||
QStringList
|
||||
removeEmpty(QStringList& list)
|
||||
{
|
||||
list.removeAll(QString());
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
SetKeyboardLayoutJob::SetKeyboardLayoutJob( const QString& model,
|
||||
const QString& layout,
|
||||
@ -177,14 +186,6 @@ SetKeyboardLayoutJob::findLegacyKeymap() const
|
||||
return ::findLegacyKeymap( m_layout, m_model, m_variant );
|
||||
}
|
||||
|
||||
QStringList
|
||||
SetKeyboardLayoutJob::removeEmpty(QStringList& list) const
|
||||
{
|
||||
list.removeAll(QString());
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SetKeyboardLayoutJob::writeVConsoleData( const QString& vconsoleConfPath, const QString& convertedKeymapPath ) const
|
||||
{
|
||||
|
@ -37,7 +37,6 @@ private:
|
||||
bool writeVConsoleData( const QString& vconsoleConfPath, const QString& convertedKeymapPath ) const;
|
||||
bool writeX11Data( const QString& keyboardConfPath ) const;
|
||||
bool writeDefaultKeyboardData( const QString& defaultKeyboardPath ) const;
|
||||
QStringList removeEmpty(QStringList& list) const;
|
||||
|
||||
QString m_model;
|
||||
QString m_layout;
|
||||
|
Loading…
Reference in New Issue
Block a user