Skip to content

Commit

Permalink
Remove unused RCTDebugComponentOwnership
Browse files Browse the repository at this point in the history
Reviewed By: sahrens

Differential Revision: D5380887

fbshipit-source-id: ff81324718d64d7a04ef4bd293d30dd6f3aabb2a
  • Loading branch information
javache authored and facebook-github-bot committed Jul 7, 2017
1 parent e0eee0b commit 8548ca0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 164 deletions.
2 changes: 0 additions & 2 deletions Libraries/Core/InitializeCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ if (__DEV__) {
require('setupDevtools');
}

require('RCTDebugComponentOwnership');

// Set up inspector
const JSInspector = require('JSInspector');
JSInspector.registerAgent(require('NetworkAgent'));
Expand Down
41 changes: 0 additions & 41 deletions Libraries/DebugComponentHierarchy/RCTDebugComponentOwnership.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import com.facebook.react.uimanager.UIImplementationProvider;
import com.facebook.react.uimanager.UIManagerModule;
import com.facebook.react.uimanager.ViewManager;
import com.facebook.react.uimanager.debug.DebugComponentOwnershipModule;
import com.facebook.systrace.Systrace;

import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_UI_MANAGER_MODULE_END;
Expand Down Expand Up @@ -65,7 +64,6 @@
UIManagerModule.class,
DeviceInfoModule.class,
// Debug only
DebugComponentOwnershipModule.class,
JSCHeapCapture.class,
JSCSamplingProfiler.class,
}
Expand Down Expand Up @@ -159,13 +157,6 @@ public NativeModule get() {
}));

if (ReactBuildConfig.DEBUG) {
moduleSpecList.add(
new ModuleSpec(DebugComponentOwnershipModule.class, new Provider<NativeModule>() {
@Override
public NativeModule get() {
return new DebugComponentOwnershipModule(reactContext);
}
}));
moduleSpecList.add(
new ModuleSpec(JSCHeapCapture.class, new Provider<NativeModule>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.facebook.react.devsupport.JSCSamplingProfiler;
import com.facebook.react.module.annotations.ReactModuleList;
import com.facebook.react.module.model.ReactModuleInfoProvider;
import com.facebook.react.uimanager.debug.DebugComponentOwnershipModule;

/**
* Package defining core framework modules (e.g. UIManager). It should be used for modules that
Expand All @@ -30,7 +29,6 @@
*/
@ReactModuleList(
nativeModules = {
DebugComponentOwnershipModule.class,
JSCHeapCapture.class,
JSCSamplingProfiler.class,
}
Expand All @@ -43,14 +41,6 @@
@Override
public List<ModuleSpec> getNativeModules(final ReactApplicationContext reactContext) {
List<ModuleSpec> moduleSpecList = new ArrayList<>();

moduleSpecList.add(
new ModuleSpec(DebugComponentOwnershipModule.class, new Provider<NativeModule>() {
@Override
public NativeModule get() {
return new DebugComponentOwnershipModule(reactContext);
}
}));
moduleSpecList.add(
new ModuleSpec(JSCHeapCapture.class, new Provider<NativeModule>() {
@Override
Expand Down

This file was deleted.

0 comments on commit 8548ca0

Please sign in to comment.