MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / removeAnnotations

Method removeAnnotations

src/Task.cpp:937–949  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

935
936////////////////////////////////////////////////////////////////////////////////
937void Task::removeAnnotations() {
938 // Erase old annotations.
939 auto i = data.begin();
940 while (i != data.end()) {
941 if (!i->first.compare(0, 11, "annotation_", 11)) {
942 --annotation_count;
943 data.erase(i++);
944 } else
945 i++;
946 }
947
948 recalc_urgency = true;
949}
950
951////////////////////////////////////////////////////////////////////////////////
952std::map<std::string, std::string> Task::getAnnotations() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected