mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Clean out old code
This commit is contained in:
parent
46173019cd
commit
14036e9094
2 changed files with 1 additions and 12 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue