Clean out old code

This commit is contained in:
CHaBou 2017-09-18 22:20:34 +02:00
parent 46173019cd
commit 14036e9094
No known key found for this signature in database
GPG key ID: EF8D073B729A0B33
2 changed files with 1 additions and 12 deletions

View file

@ -102,14 +102,10 @@ export default class Term extends PureComponent {
// measures the container and makes the decision
// whether to resize the term to fit the container
measureResize() {
//eslint-disable-next-line no-console
console.log('performing measure resize');
const termRect = this.termWrapperRef.getBoundingClientRect();
if (!this.termRect || termRect.width !== this.termRect.width || termRect.height !== this.termRect.height) {
this.termRect = termRect;
//eslint-disable-next-line no-console
console.log('performing fit resize');
this.fitResize();
}
}

View file

@ -36,7 +36,7 @@ class Hyper extends PureComponent {
attachKeyListeners() {
// eslint-disable-next-line no-console
console.error('removed key listeners');
console.error('unimplemented');
}
onTermsRef(terms) {
@ -45,18 +45,11 @@ class Hyper extends PureComponent {
componentDidUpdate(prev) {
if (prev.activeSession !== this.props.activeSession) {
if (this.keys) {
this.keys.reset();
}
this.handleFocusActive();
this.attachKeyListeners();
}
}
componentWillUnmount() {
if (this.keys) {
this.keys.reset();
}
document.body.style.backgroundColor = 'inherit';
}