Skip to content

Commit 7e88d8d

Browse files
authored
remove dead code - moveCard method in Lane
1 parent c70c48a commit 7e88d8d

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/components/Lane.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,6 @@ class Lane extends Component {
6161
}
6262
}
6363

64-
moveCard = (dragIndex, hoverIndex) => {
65-
const {cards} = this.state
66-
const dragCard = cards[dragIndex]
67-
68-
this.setState(
69-
update(this.state, {
70-
cards: {
71-
$splice: [[dragIndex, 1], [hoverIndex, 0, dragCard]]
72-
}
73-
})
74-
)
75-
}
76-
7764
componentWillReceiveProps(nextProps) {
7865
if (!isEqual(this.props.cards, nextProps.cards)) {
7966
this.setState({
@@ -148,7 +135,6 @@ class Lane extends Component {
148135
customCard={this.props.children}
149136
tagStyle={tagStyle}
150137
cardStyle={cardStyle}
151-
moveCard={this.moveCard}
152138
removeCard={this.removeCard}
153139
onClick={e => this.handleCardClick(e, card)}
154140
onDelete={this.props.onCardDelete}

0 commit comments

Comments
 (0)