Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 1, 2024
1 parent a63049b commit f452428
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Expand Up @@ -112,10 +112,6 @@ class PythonLivingDocumentation : LivingDocumentation {
private fun intersectsElement(selectionModel: SelectionModel, element: PsiElement): Boolean {
return selectionModel.selectionStart < element.textRange.endOffset && selectionModel.selectionEnd > element.textRange.startOffset
}

private fun containsElement(selectionModel: SelectionModel, element: PsiElement): Boolean {
return selectionModel.selectionStart <= element.textRange.startOffset && element.textRange.endOffset <= selectionModel.selectionEnd
}
}

fun buildAndInsert(replacementText: String, anchor: PyDocStringOwner): PyDocStringOwner {
Expand Down
Expand Up @@ -174,10 +174,6 @@ class JavaScriptLivingDocumentation : LivingDocumentation {
}
}

private fun containsElement(selectionModel: SelectionModel, element: PsiElement): Boolean {
return selectionModel.selectionStart <= element.textRange.startOffset && element.textRange.endOffset <= selectionModel.selectionEnd
}

private fun isMeaningfulToDocumentInSelection(element: PsiElement?): Boolean {
if ((element is ES6ImportedBinding) || (element is ES6ImportSpecifierAlias) || (element is ES6ImportSpecifier)) {
return false
Expand Down

0 comments on commit f452428

Please sign in to comment.