store: remove some _unlocked functions, update clear_labels

They don't add much value, let's remove.

Rework clear_labels in terms of update_labels.
This commit is contained in:
Dirk-Jan C. Binnema
2025-09-03 19:36:35 +03:00
committed by Seth Ladygo
parent 33ab0acc8d
commit c547cde73e
3 changed files with 40 additions and 60 deletions

View File

@ -318,6 +318,26 @@ public:
*/
size_t size() const { return static_cast<size_t>(document().integer_value(Field::Id::Size)); }
/**
* Get the Xapian term for some message path (static function)
*
* @param path the path
*
* @return the xapian term
*/
static std::string xapian_term(const std::string& path) {
return field_from_id(Field::Id::Path).xapian_term(path);
}
/**
* Get the Xapian term for this message
*
* @return the xapian term
*/
std::string xapian_term() const {
return xapian_term(path());
}
/**
* Get the (possibly empty) list of references (consisting of both the
* References and In-Reply-To fields), with the oldest first and the