mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
Enhance FirebaseDatabase function names (#13778)
This commit is contained in:
1 parent
7c4c134062
commit
d4e42eef8c
3 files changed
+3
-3
No files matched your search
@@ -33,6 +33,6 @@
|
||||
- (FPruneForest *)keepAll:(NSSet *)children atPath:(FPath *)path;
|
||||
- (FPruneForest *)pruneAll:(NSSet *)children atPath:(FPath *)path;
|
||||
|
||||
- (void)enumarateKeptNodesUsingBlock:(void (^)(FPath *path))block;
|
||||
- (void)enumerateKeptNodesUsingBlock:(void (^)(FPath *path))block;
|
||||
|
||||
@end
|
||||
@@ -183,7 +183,7 @@ static BOOL (^kFKeepPredicate)(id) = ^BOOL(NSNumber *pruneValue) {
|
||||
initWithForest:[self.pruneForest setTree:newSubtree atPath:path]];
|
||||
}
|
||||
|
||||
- (void)enumarateKeptNodesUsingBlock:(void (^)(FPath *))block {
|
||||
- (void)enumerateKeptNodesUsingBlock:(void (^)(FPath *))block {
|
||||
[self.pruneForest forEach:^(FPath *path, id value) {
|
||||
if (value != nil && ![value boolValue]) {
|
||||
block(path);
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
FPath *relativePath = [FPath relativePathFrom:prunePath to:absolutePath];
|
||||
if ([pruneForest shouldPruneUnkeptDescendantsAtPath:relativePath]) {
|
||||
__block FCompoundWrite *newCache = [FCompoundWrite emptyWrite];
|
||||
[[pruneForest childAtPath:relativePath] enumarateKeptNodesUsingBlock:^(FPath *keepPath) {
|
||||
[[pruneForest childAtPath:relativePath] enumerateKeptNodesUsingBlock:^(FPath *keepPath) {
|
||||
newCache = [newCache addWrite:[node getChild:keepPath] atPath:keepPath];
|
||||
}];
|
||||
self.serverCache =
|
||||
|
||||
Reference in new issue
Block a user