diff options
Diffstat (limited to 'kcron/cttask.cpp')
-rw-r--r-- | kcron/cttask.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/kcron/cttask.cpp b/kcron/cttask.cpp index 1b7b299..22fc77b 100644 --- a/kcron/cttask.cpp +++ b/kcron/cttask.cpp @@ -33,14 +33,11 @@ CTTask::CTTask(string tokStr, string _comment, bool _syscron) : else enabled = true; + //older versions had something called silence. We should still be able to not choke on what we have been + //writing earlier. This has no use though. if (tokStr.substr(0,1) == "-") { tokStr = tokStr.substr(1,tokStr.length() - 1); - silent = true; - } - else - { - silent = false; } if (tokStr.substr(0,1) == "@") @@ -119,7 +116,6 @@ CTTask::CTTask(string tokStr, string _comment, bool _syscron) : initialCommand = command; initialComment = comment; initialEnabled = enabled; - initialSilent = silent; } CTTask::CTTask(const CTTask &source) : @@ -132,12 +128,10 @@ CTTask::CTTask(const CTTask &source) : command(source.command), comment(source.comment), enabled(source.enabled), - silent(source.silent), initialUser(""), initialCommand(""), initialComment(""), - initialEnabled(true), - initialSilent(false) + initialEnabled(true) { } @@ -152,12 +146,10 @@ void CTTask::operator = (const CTTask& source) command = source.command; comment = source.comment; enabled = source.enabled; - silent = source.silent; initialUser = ""; initialCommand = ""; initialComment = ""; initialEnabled = true; - initialSilent = false; return; } @@ -169,9 +161,6 @@ ostream& operator << (ostream& outputStream, const CTTask& task) if (!task.enabled) outputStream << "#\\"; - if (task.silent) - outputStream << "-"; - outputStream << task.minute << " "; outputStream << task.hour << " "; outputStream << task.dayOfMonth << " "; @@ -197,7 +186,6 @@ void CTTask::apply() initialCommand = command; initialComment = comment; initialEnabled = enabled; - initialSilent = silent; } void CTTask::cancel() @@ -211,7 +199,6 @@ void CTTask::cancel() command = initialCommand; comment = initialComment; enabled = initialEnabled; - silent = initialSilent; } bool CTTask::dirty() const @@ -219,7 +206,7 @@ bool CTTask::dirty() const return (month.dirty() || dayOfMonth.dirty() || dayOfWeek.dirty() || hour.dirty() || minute.dirty() || (user != initialUser) || (command != initialCommand) || (comment != initialComment) || - (enabled != initialEnabled) || (silent != initialSilent)); + (enabled != initialEnabled) ); } string CTTask::describe() const |