docs: Add removal comments

This commit is contained in:
Tomas Babej 2021-08-08 10:10:06 -04:00
parent 2c44f79277
commit 91517151ad
2 changed files with 3 additions and 2 deletions

View file

@ -331,7 +331,7 @@ bool getDOM (const std::string& name, const Task& task, Variant& value)
}
// Special handling of status required for virtual waiting status
// implementation
// implementation. Remove in 3.0.0.
if (ref.data.size () && size == 1 && canonical == "status")
{
value = Variant (ref.statusToText (ref.getStatus ()));

View file

@ -305,8 +305,9 @@ Task::status Task::getStatus () const
auto status = textToStatus (get ("status"));
// implement the "virtual" Task::waiting status, which is not stored on-disk
// Implement the "virtual" Task::waiting status, which is not stored on-disk
// but is defined as a pending task with a `wait` attribute in the future.
// This is workaround for 2.6.0, remove in 3.0.0.
if (status == Task::pending && is_waiting ()) {
return Task::waiting;
}