Skip to content

Commit

Permalink
Removed debug prints and unneeded variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbmhunter committed Nov 25, 2023
1 parent f25f271 commit 8ea22af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Terminals/SingleTerminal/SingleTerminalView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export default observer((props: Props) => {
});

const terminalDiv = useRef<HTMLInputElement>(null);
const [height, setHeight] = useState(0);

// This is what I tried to get working to set the
// react-window height but it didn't work. Leaving it
Expand All @@ -149,8 +148,6 @@ export default observer((props: Props) => {
if (!terminalDiv?.current?.offsetHeight) {
return;
}
console.log('setting height=', terminalDiv?.current?.offsetHeight);
setHeight(terminalDiv?.current?.offsetHeight);
terminal.setTerminalViewHeightPx(terminalDiv?.current?.offsetHeight);
};
handleResize();
Expand All @@ -166,7 +163,7 @@ export default observer((props: Props) => {
if (appStore.testing) {
heightDebug = 200;
} else {
heightDebug = height;
heightDebug = terminal.terminalViewHeightPx;
}

return (
Expand Down Expand Up @@ -244,7 +241,6 @@ export default observer((props: Props) => {
itemData={terminal.filteredTerminalRows}
itemCount={terminal.filteredTerminalRows.length}
onScroll={(scrollProps) => {
console.log('onScroll() called. scrollProps=', scrollProps);
terminal.fixedSizedListOnScroll(scrollProps);
}}
overscanCount={5}
Expand Down

0 comments on commit 8ea22af

Please sign in to comment.