Skip to content

Commit 73a9281

Browse files
committedOct 10, 2017
remove dead code
1 parent 6324242 commit 73a9281

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed
 

‎Swiper.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ class Swiper extends React.Component {
5050
)
5151
}
5252

53-
hex2rgba = (hex, opacity = 1) => {
54-
hex = hex.replace('#', '')
55-
const r = parseInt(hex.substring(0, 2), 16)
56-
const g = parseInt(hex.substring(2, 4), 16)
57-
const b = parseInt(hex.substring(4, 6), 16)
58-
return `'rgba(${r},${g},${b},${opacity})'`
59-
}
60-
6153
calculateSecondCardIndex = firstCardIndex => {
6254
const cardIndexAtLastIndex = firstCardIndex === this.state.cards.length - 1
6355
return cardIndexAtLastIndex ? 0 : firstCardIndex + 1
@@ -148,7 +140,7 @@ class Swiper extends React.Component {
148140
this.setState({ labelType: LABEL_TYPES.NONE })
149141
}
150142

151-
const { onTapCardDeadZone } = this.props;
143+
const { onTapCardDeadZone } = this.props
152144
if (
153145
this._animatedValueX < -onTapCardDeadZone ||
154146
this._animatedValueX > onTapCardDeadZone ||

0 commit comments

Comments
 (0)
Please sign in to comment.