mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
Simplify RKDataManager
This commit is contained in:
parent
95d2843362
commit
10b13512b9
@ -24,7 +24,6 @@ RCT_EXPORT_MODULE()
|
||||
*/
|
||||
RCT_EXPORT_METHOD(queryData:(NSString *)queryType
|
||||
withQuery:(NSDictionary *)query
|
||||
queryHash:(__unused NSString *)queryHash
|
||||
responseSender:(RCTResponseSenderBlock)responseSender)
|
||||
{
|
||||
if ([queryType isEqualToString:@"http"]) {
|
||||
|
@ -13,8 +13,6 @@
|
||||
|
||||
var RCTDataManager = require('NativeModules').DataManager;
|
||||
|
||||
var crc32 = require('crc32');
|
||||
|
||||
var XMLHttpRequestBase = require('XMLHttpRequestBase');
|
||||
|
||||
class XMLHttpRequest extends XMLHttpRequestBase {
|
||||
@ -28,8 +26,6 @@ class XMLHttpRequest extends XMLHttpRequestBase {
|
||||
data: data,
|
||||
headers: headers,
|
||||
},
|
||||
// TODO: Do we need this? is it used anywhere?
|
||||
'h' + crc32(method + '|' + url + '|' + data),
|
||||
this.callback.bind(this)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user