diff options
author | Gil <mcg@google.com> | 2018-05-06 14:12:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-06 14:12:20 -0700 |
commit | 04a28fce81c737b6505e6c542a14d8529c9f891d (patch) | |
tree | e49c433fd6726a70efc280f1b5f4025e64da7f28 /Firestore/core/src/firebase/firestore/model/base_path.h | |
parent | 5af6de9e69b86ab94da78b9f889b96517cec47da (diff) |
Make BasePath hash directly as a range (#1232)
Remove BasePath.Hash() Objective-C compatibility method
Make DocumentKey's hasher use BasePath's segment-based hash code.
Diffstat (limited to 'Firestore/core/src/firebase/firestore/model/base_path.h')
-rw-r--r-- | Firestore/core/src/firebase/firestore/model/base_path.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Firestore/core/src/firebase/firestore/model/base_path.h b/Firestore/core/src/firebase/firestore/model/base_path.h index 59a9b5a..58df6f0 100644 --- a/Firestore/core/src/firebase/firestore/model/base_path.h +++ b/Firestore/core/src/firebase/firestore/model/base_path.h @@ -160,14 +160,6 @@ class BasePath { return segments_ >= rhs.segments_; } -#if defined(__OBJC__) - // For Objective-C++ hash; to be removed after migration. - // Do NOT use in C++ code. - size_t Hash() const { - return util::Hash(segments_); - } -#endif // defined(__OBJC__) - protected: BasePath() = default; template <typename IterT> |