File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
pycharm/src/main/kotlin/cc/unitmesh/pycharm/provider
webstorm/src/main/kotlin/cc/unitmesh/ide/webstorm/provider Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,6 @@ class PythonLivingDocumentation : LivingDocumentation {
112
112
private fun intersectsElement (selectionModel : SelectionModel , element : PsiElement ): Boolean {
113
113
return selectionModel.selectionStart < element.textRange.endOffset && selectionModel.selectionEnd > element.textRange.startOffset
114
114
}
115
-
116
- private fun containsElement (selectionModel : SelectionModel , element : PsiElement ): Boolean {
117
- return selectionModel.selectionStart <= element.textRange.startOffset && element.textRange.endOffset <= selectionModel.selectionEnd
118
- }
119
115
}
120
116
121
117
fun buildAndInsert (replacementText : String , anchor : PyDocStringOwner ): PyDocStringOwner {
Original file line number Diff line number Diff line change @@ -174,10 +174,6 @@ class JavaScriptLivingDocumentation : LivingDocumentation {
174
174
}
175
175
}
176
176
177
- private fun containsElement (selectionModel : SelectionModel , element : PsiElement ): Boolean {
178
- return selectionModel.selectionStart <= element.textRange.startOffset && element.textRange.endOffset <= selectionModel.selectionEnd
179
- }
180
-
181
177
private fun isMeaningfulToDocumentInSelection (element : PsiElement ? ): Boolean {
182
178
if ((element is ES6ImportedBinding ) || (element is ES6ImportSpecifierAlias ) || (element is ES6ImportSpecifier )) {
183
179
return false
You can’t perform that action at this time.
0 commit comments