Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozone committed Mar 9, 2018
1 parent bbafa62 commit 353042e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ARKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class ARKit extends Component {
/>
<Text style={styles.stateText}>
{TRACKING_REASONS[this.state.reason] || this.state.reason}
{this.state.floor && ` (${this.state.floor})`}
</Text>
</View>
);
Expand Down Expand Up @@ -113,21 +112,18 @@ class ARKit extends Component {
_onTrackingState = ({
state = this.state.state,
reason = this.state.reason,
floor,
}) => {
if (this.props.onTrackingState) {
this.props.onTrackingState({
state: TRACKING_STATES[state] || state,
reason: TRACKING_REASONS[reason] || reason,
floor,
});
}
// TODO: check if we can remove this
if (this.props.debug) {
this.setState({
state,
reason,
floor: floor ? floor.toFixed(2) : this.state.floor,
});
}
};
Expand Down

0 comments on commit 353042e

Please sign in to comment.