Revert 3770f061c832 for further investigation

Reviewed By: idevelop

Differential Revision: D2695659

fb-gh-sync-id: b1ba529c648681faef5d4f07273722764722fbe1
This commit is contained in:
Milen Dzhumerov
2015-11-25 05:20:34 -08:00
committed by facebook-github-bot-7
parent 060664fd3d
commit 638fd11c5c
2 changed files with 0 additions and 43 deletions

View File

@@ -435,24 +435,6 @@ RCT_EXPORT_METHOD(clear:(RCTResponseSenderBlock)callback)
callback(@[RCTNullIfNil(error)]);
}
RCT_EXPORT_METHOD(clearPrefix:(NSString *)prefix callack:(RCTResponseSenderBlock)callback)
{
NSDictionary *errorOut = [self _ensureSetup];
if (errorOut) {
callback(@[errorOut]);
return;
}
NSMutableArray<NSString *> *keys = [NSMutableArray array];
for (NSString *key in _manifest.allKeys) {
if ([key hasPrefix:prefix]) {
[keys addObject:key];
}
}
[self multiRemove:keys callback:callback];
}
RCT_EXPORT_METHOD(getAllKeys:(RCTResponseSenderBlock)callback)
{
NSDictionary *errorOut = [self _ensureSetup];