[ReactNative] Remove RCTJSTimers

Summary:
@public

Remove `RCTJSTimers.js`, the file was just an alias to `JSTimersExecution`.

Test Plan: Still builds.
This commit is contained in:
Tadeu Zagallo 2015-06-15 10:48:24 -07:00
parent 650fc9de4c
commit c30365acba
4 changed files with 4 additions and 22 deletions

View File

@ -1,18 +0,0 @@
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule RCTJSTimers
* @flow
*/
'use strict';
var JSTimersExecution = require('JSTimersExecution');
var RCTJSTimers = JSTimersExecution;
module.exports = RCTJSTimers;

View File

@ -40,7 +40,7 @@ var invariant = require('invariant');
// Just to ensure this gets packaged, since its only caller is from Native. // Just to ensure this gets packaged, since its only caller is from Native.
require('RCTEventEmitter'); require('RCTEventEmitter');
require('RCTLog'); require('RCTLog');
require('RCTJSTimers'); require('JSTimersExecution');
function inject() { function inject() {
/** /**

View File

@ -1245,7 +1245,7 @@ RCT_INNER_BRIDGE_ONLY(_invokeAndProcessModule:(__unused NSString *)module
{ {
RCTAssertJSThread(); RCTAssertJSThread();
NSString *moduleDotMethod = @"RCTJSTimers.callTimers"; NSString *moduleDotMethod = @"JSTimersExecution.callTimers";
NSNumber *moduleID = RCTLocalModuleIDs[moduleDotMethod]; NSNumber *moduleID = RCTLocalModuleIDs[moduleDotMethod];
RCTAssert(moduleID != nil, @"Module '%@' not registered.", RCTAssert(moduleID != nil, @"Module '%@' not registered.",
[[moduleDotMethod componentsSeparatedByString:@"."] firstObject]); [[moduleDotMethod componentsSeparatedByString:@"."] firstObject]);

View File

@ -74,7 +74,7 @@
RCT_EXPORT_MODULE() RCT_EXPORT_MODULE()
RCT_IMPORT_METHOD(RCTJSTimers, callTimers) RCT_IMPORT_METHOD(JSTimersExecution, callTimers)
- (instancetype)init - (instancetype)init
{ {
@ -153,7 +153,7 @@ RCT_IMPORT_METHOD(RCTJSTimers, callTimers)
// call timers that need to be called // call timers that need to be called
if ([timersToCall count] > 0) { if ([timersToCall count] > 0) {
[_bridge enqueueJSCall:@"RCTJSTimers.callTimers" args:@[timersToCall]]; [_bridge enqueueJSCall:@"JSTimersExecution.callTimers" args:@[timersToCall]];
} }
if (_timers.count == 0) { if (_timers.count == 0) {