MCPcopy Create free account
hub / github.com/comaps/comaps / IsObsolete

Function IsObsolete

libs/editor/osm_editor.cpp:123–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123bool IsObsolete(editor::XMLFeature const & xml, FeatureID const & fid)
124{
125 // TODO(mgsergio): If xml and feature are identical return true
126 auto const uploadTime = xml.GetUploadTime();
127 return uploadTime != base::INVALID_TIME_STAMP &&
128 base::TimeTToSecondsSinceEpoch(uploadTime) < GetMwmCreationTimeByMwmId(fid.m_mwmId);
129}
130} // namespace
131
132Editor::Editor() : m_configLoader(m_config), m_notes(editor::Notes::MakeNotes())

Callers 1

LoadMwmEditsMethod · 0.85

Calls 3

TimeTToSecondsSinceEpochFunction · 0.85
GetUploadTimeMethod · 0.80

Tested by

no test coverage detected