Skip to content

Commit

Permalink
Move dev-only flags to only exist on composites (facebook#6709)
Browse files Browse the repository at this point in the history
_isOwnerNecessary was unused.
  • Loading branch information
sophiebits committed May 5, 2016
1 parent b6a6078 commit e01bf78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/renderers/shared/reconciler/ReactCompositeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ var ReactCompositeComponentMixin = {

// ComponentWillUnmount shall only be called once
this._calledComponentWillUnmount = false;

if (__DEV__) {
this._warnedAboutRefsInRender = false;
}
},

/**
Expand Down
5 changes: 0 additions & 5 deletions src/renderers/shared/reconciler/instantiateReactComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ function instantiateReactComponent(node) {
instance._mountIndex = 0;
instance._mountImage = null;

if (__DEV__) {
instance._isOwnerNecessary = false;
instance._warnedAboutRefsInRender = false;
}

if (__DEV__) {
var debugID = isEmpty ? 0 : nextDebugID++;
instance._debugID = debugID;
Expand Down

0 comments on commit e01bf78

Please sign in to comment.