removing redundant function

This commit is contained in:
Aiday Marlen Kyzy
2023-09-05 14:20:47 +02:00
parent 7efab94202
commit 278fd2b2a1
2 changed files with 1 additions and 9 deletions
@@ -469,6 +469,7 @@ export class StickyScrollController extends Disposable implements IEditorContrib
private async _renderStickyScroll(rebuildFromLine: number = Infinity) {
const model = this._editor.getModel();
if (!model || model.isTooLargeForTokenization()) {
this._foldingModel = null;
this._stickyScrollWidget.setState(undefined, null, rebuildFromLine);
return;
}
@@ -439,15 +439,6 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
return isInLine !== undefined;
}
/**
* Given a child dom node, tries to find if it is (contained in) a sticky line number.
* @returns a boolean.
*/
isInStickyLineNumber(domNode: HTMLElement | null): boolean {
const isInLineNumber = this._getAttributeValue(domNode, STICKY_IS_LINE_NUMBER_ATTR);
return isInLineNumber !== undefined;
}
/**
* Given a child dom node, tries to find if this dom node is (contained in) a sticky folding icon.
* @returns a boolean.