libs: remove KDM leftovers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-04-03 15:02:25 +03:00
parent 304b5398ce
commit 9f7eb66616
3 changed files with 0 additions and 34 deletions

View file

@ -1,6 +1,3 @@
include_directories( ${CMAKE_SOURCE_DIR}/kdm/kfrontend )
########### next target ###############
set(kgreet_classic_PART_SRCS kgreet_classic.cpp )

View file

@ -568,35 +568,6 @@ KDisplayManager::shutdown(KWorkSpace::ShutdownType shutdownType,
}
exec(cmd.data());
}
bool
KDisplayManager::bootOptions(QStringList &opts, int &defopt, int &current)
{
if (DMType != NewKDM)
return false;
QByteArray re;
if (!exec("listbootoptions\n", re))
return false;
opts = QString::fromLocal8Bit(re.data()).split('\t', QString::SkipEmptyParts);
if (opts.size() < 4)
return false;
bool ok;
defopt = opts[2].toInt(&ok);
if (!ok)
return false;
current = opts[3].toInt(&ok);
if (!ok)
return false;
opts = opts[1].split(' ', QString::SkipEmptyParts);
for (QStringList::Iterator it = opts.begin(); it != opts.end(); ++it)
(*it).replace("\\s", " ");
return true;
}
#endif // KDM_NO_SHUTDOWN
// This only tells KDM to not auto-re-login upon session crash

View file

@ -57,8 +57,6 @@ public:
bool switchVT(int vt);
void lockSwitchVT(int vt);
bool bootOptions(QStringList &opts, int &dflt, int &curr);
static QString sess2Str(const SessEnt &se);
static void sess2Str2(const SessEnt &se, QString &user, QString &loc);