diff --git a/kdecore/kernel/kcmdlineargs.cpp b/kdecore/kernel/kcmdlineargs.cpp index 6f6d57a9..fb8310fb 100644 --- a/kdecore/kernel/kcmdlineargs.cpp +++ b/kdecore/kernel/kcmdlineargs.cpp @@ -1522,8 +1522,7 @@ KUrl KCmdLineArgs::makeURL(const QByteArray &_urlArg) return KUrl(urlArg); // Argument is a URL } -void -KCmdLineArgsPrivate::addArgument(const QByteArray &argument) +void KCmdLineArgsPrivate::addArgument(const QByteArray &argument) { if (!parsedArgList) parsedArgList = new KCmdLineParsedArgs; @@ -1531,20 +1530,6 @@ KCmdLineArgsPrivate::addArgument(const QByteArray &argument) parsedArgList->append(argument); } -void -KCmdLineArgs::addTempFileOption() -{ - KCmdLineOptions tmpopt; - tmpopt.add( "tempfile", ki18n("The files/URLs opened by the application will be deleted after use") ); - KCmdLineArgs::addCmdLineOptions( tmpopt, ki18n("KDE-tempfile"), "kde-tempfile" ); -} - -bool KCmdLineArgs::isTempFileSet() -{ - KCmdLineArgs* args = KCmdLineArgs::parsedArgs( "kde-tempfile" ); - return args && args->isSet( "tempfile" ); -} - QStringList KCmdLineArgs::allArguments() { QStringList lst; diff --git a/kdecore/kernel/kcmdlineargs.h b/kdecore/kernel/kcmdlineargs.h index 9a214d38..0ed05845 100644 --- a/kdecore/kernel/kcmdlineargs.h +++ b/kdecore/kernel/kcmdlineargs.h @@ -598,18 +598,6 @@ public: */ static void saveAppArgs( QDataStream &); - /** - * Add standard option --tempfile - */ - static void addTempFileOption(); - - // this avoids having to know the "id" used by addTempFileOption - // but this approach doesn't scale well, we can't have 50 standard options here... - /** - * @return true if --tempfile was set - */ - static bool isTempFileSet(); - /** * Returns the number of arguments returned by qtArgv() * diff --git a/kdeui/kernel/kuniqueapplication.h b/kdeui/kernel/kuniqueapplication.h index 3e36e2e0..58cb7749 100644 --- a/kdeui/kernel/kuniqueapplication.h +++ b/kdeui/kernel/kuniqueapplication.h @@ -39,10 +39,6 @@ * your application can only be opened once per user or once per host, you * need to ensure this independently of KUniqueApplication. * - * If your application is used to open files, it should also support the --tempfile - * option (see KCmdLineArgs::addTempFileOption()), to delete tempfiles after use. - * Add X-KDE-HasTempFileOption=true to the .desktop file to indicate this. - * * @see KApplication * @author Preston Brown */ diff --git a/kio/application.desktop b/kio/application.desktop index 606582aa..7e8f5495 100644 --- a/kio/application.desktop +++ b/kio/application.desktop @@ -127,8 +127,5 @@ Type=QStringList [PropertyDef::X-KDE-ParentApp] Type=QString -[PropertyDef::X-KDE-HasTempFileOption] -Type=bool - [PropertyDef::X-KDE-Protocols] Type=QStringList