diff options
author | Gil <mcg@google.com> | 2018-05-05 09:00:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-05 09:00:53 -0700 |
commit | 5af6de9e69b86ab94da78b9f889b96517cec47da (patch) | |
tree | 0b8447e1a4e921a38e568ad0aef6cb9aca1997b6 /Firestore/Source/Model/FSTDocumentVersionDictionary.mm | |
parent | a080e481b5e6fcbc2b645920051cf20fc8cad7a7 (diff) |
Migrate FSTDocumentVersionDictionary to C++ DocumentVersionMap (#1231)
Diffstat (limited to 'Firestore/Source/Model/FSTDocumentVersionDictionary.mm')
-rw-r--r-- | Firestore/Source/Model/FSTDocumentVersionDictionary.mm | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Firestore/Source/Model/FSTDocumentVersionDictionary.mm b/Firestore/Source/Model/FSTDocumentVersionDictionary.mm deleted file mode 100644 index 870e082..0000000 --- a/Firestore/Source/Model/FSTDocumentVersionDictionary.mm +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2017 Google - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import "Firestore/Source/Model/FSTDocumentVersionDictionary.h" - -#import "Firestore/Source/Core/FSTSnapshotVersion.h" -#import "Firestore/Source/Model/FSTDocumentKey.h" - -NS_ASSUME_NONNULL_BEGIN - -@implementation FSTImmutableSortedDictionary (FSTDocumentVersionDictionary) - -+ (instancetype)documentVersionDictionary { - static FSTDocumentVersionDictionary *singleton; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - singleton = [FSTDocumentVersionDictionary dictionaryWithComparator:FSTDocumentKeyComparator]; - }); - return singleton; -} - -@end - -NS_ASSUME_NONNULL_END |