Skip to content

Commit f452428

Browse files
committed
fix: fix tests
1 parent a63049b commit f452428

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

pycharm/src/main/kotlin/cc/unitmesh/pycharm/provider/PythonLivingDocumentation.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ class PythonLivingDocumentation : LivingDocumentation {
112112
private fun intersectsElement(selectionModel: SelectionModel, element: PsiElement): Boolean {
113113
return selectionModel.selectionStart < element.textRange.endOffset && selectionModel.selectionEnd > element.textRange.startOffset
114114
}
115-
116-
private fun containsElement(selectionModel: SelectionModel, element: PsiElement): Boolean {
117-
return selectionModel.selectionStart <= element.textRange.startOffset && element.textRange.endOffset <= selectionModel.selectionEnd
118-
}
119115
}
120116

121117
fun buildAndInsert(replacementText: String, anchor: PyDocStringOwner): PyDocStringOwner {

webstorm/src/main/kotlin/cc/unitmesh/ide/webstorm/provider/JavaScriptLivingDocumentation.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ class JavaScriptLivingDocumentation : LivingDocumentation {
174174
}
175175
}
176176

177-
private fun containsElement(selectionModel: SelectionModel, element: PsiElement): Boolean {
178-
return selectionModel.selectionStart <= element.textRange.startOffset && element.textRange.endOffset <= selectionModel.selectionEnd
179-
}
180-
181177
private fun isMeaningfulToDocumentInSelection(element: PsiElement?): Boolean {
182178
if ((element is ES6ImportedBinding) || (element is ES6ImportSpecifierAlias) || (element is ES6ImportSpecifier)) {
183179
return false

0 commit comments

Comments
 (0)