From c8549a09f6f404b6a1f643644a11029d4b0f2739 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 22 May 2022 02:21:41 +0300 Subject: [PATCH] kded: remove now redundant command-line option same as calling `kbuildsycoca4` Signed-off-by: Ivailo Monev --- kded/kded.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/kded/kded.cpp b/kded/kded.cpp index 54d60851..be373dc8 100644 --- a/kded/kded.cpp +++ b/kded/kded.cpp @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -654,19 +653,11 @@ int main(int argc, char *argv[]) KDE_VERSION_STRING, ki18n("KDE Daemon - triggers Sycoca database updates when needed")); - KCmdLineOptions options; - options.add("check", ki18n("Check Sycoca database only once")); - KCmdLineArgs::init(argc, argv, &aboutData); - KCmdLineArgs::addCmdLineOptions(options); - // WABA: Make sure not to enable session management. putenv(qstrdup("SESSION_MANAGER=")); - // Parse command line before checking DCOP - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); - KComponentData componentData(&aboutData); KSharedConfig::Ptr config = componentData.config(); // Enable translations. @@ -677,12 +668,6 @@ int main(int argc, char *argv[]) KDE_signal(SIGHUP, sighandler); KConfigGroup cg(config, "General"); - if (args->isSet("check")) { - checkStamps = cg.readEntry("CheckFileStamps", true); - runBuildSycoca(); - return 0; - } - HostnamePollInterval = cg.readEntry("HostnamePollInterval", 5000); bCheckSycoca = cg.readEntry("CheckSycoca", true); bCheckUpdates = cg.readEntry("CheckUpdates", true);