Skip to content

Commit

Permalink
Move dev-only flags to only exist on composites (#6709)
Browse files Browse the repository at this point in the history
_isOwnerNecessary was unused.
(cherry picked from commit e01bf78)
  • Loading branch information
sophiebits authored and zpao committed Jun 14, 2016
1 parent 20a081e commit 6192417
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 6192417

Please sign in to comment.