Commit d9292682 authored by Tushar Maheshwari's avatar Tushar Maheshwari
Browse files

remove unused method languageNames

parent 5a29f474
......@@ -423,29 +423,8 @@ QStringList KHangMan::alphabet() const
return letterList;
}
QStringList KHangMan::languageNames() const
{
QStringList languageCodes = SharedKvtmlFiles::languages();
if (languageCodes.isEmpty()) {
QApplication::instance()->quit();
}
QStringList languageNames;
for (const QString& languageCode : std::as_const(languageCodes))
{
QLocale locale(languageCode);
QString languageName = locale.nativeLanguageName();
languageNames.append(languageName);
}
return languageNames;
}
// ----------------------------------------------------------------
void KHangMan::scanLanguages()
{
m_languageNames.clear();
......
......@@ -120,8 +120,6 @@ public:
Q_INVOKABLE QStringList alphabet() const;
Q_INVOKABLE QStringList languageNames() const;
/** Return true if the word contains the char in the QString */
Q_INVOKABLE bool containsChar(const QString &original);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment