diff options
Diffstat (limited to 'src/mongo/db/pipeline/dependencies.h')
-rw-r--r-- | src/mongo/db/pipeline/dependencies.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/db/pipeline/dependencies.h b/src/mongo/db/pipeline/dependencies.h index 3c892de8181..bda3bf9b243 100644 --- a/src/mongo/db/pipeline/dependencies.h +++ b/src/mongo/db/pipeline/dependencies.h @@ -184,11 +184,6 @@ struct DepsTracker { } } - /** - * Return fieldpaths ordered such that a parent is immediately before its children. - */ - std::list<std::string> sortedFields() const; - std::set<std::string> fields; // Names of needed fields in dotted notation. std::set<Variables::Id> vars; // IDs of referenced variables. bool needWholeDocument = false; // If true, ignore 'fields'; the whole document is needed. @@ -206,13 +201,4 @@ private: // dependency analysis. QueryMetadataBitSet _metadataDeps; }; - - -/** Custom comparator that orders fieldpath strings by path prefix first, then by field. - * This ensures that a parent field is ordered directly before its children. - */ -struct PathPrefixComparator { - /* Returns true if the lhs value should sort before the rhs, false otherwise. */ - bool operator()(const std::string& lhs, const std::string& rhs) const; -}; } // namespace mongo |