Skip to content

Commit 2c76b4a

Browse files
committed
Removed unecessary functions
1 parent cfad4f6 commit 2c76b4a

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/components/KonvaStage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ class KonvaStage extends Component<PropsInt, StateInt> {
113113
if (e.target === e.target.getStage()) {
114114
return;
115115
}
116-
console.log(this.props.image.width);
117-
118116
// // clicked on transformer - do nothing
119117
const clickedOnTransformer =
120118
e.target.getParent().className === "Transformer";

src/containers/AppContainer.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ class AppContainer extends Component<Props, State> {
6666
});
6767
}
6868

69-
// state = {
70-
// width: 25,
71-
// rightColumnOpen: true
72-
// };
7369
componentDidUpdate(prevProps: Props) {
7470
const { imageSource } = this.props;
7571
const {changed} = this.state;
@@ -95,12 +91,6 @@ class AppContainer extends Component<Props, State> {
9591
}
9692
};
9793

98-
clearImage = () => {
99-
this.setState({
100-
image: null
101-
})
102-
}
103-
10494
componentDidMount() {
10595
this.props.loadInitData();
10696
}
@@ -124,8 +114,6 @@ class AppContainer extends Component<Props, State> {
124114
totalComponents={totalComponents}
125115
focusComponent={focusComponent}
126116
selectableChildren={selectableChildren}
127-
setImage={this.setImage}
128-
clearImage={this.clearImage}
129117
/>
130118
<MainContainer components={components} image={this.state.image}
131119
imageSource={this.props.imageSource}/>

0 commit comments

Comments
 (0)