Skip to content

Commit 025cb95

Browse files
committed
fix(provider): remove unused logger in LivingDocumentation and HarmonyOsLivingDocumentation
Remove unused `logger` variables in the `LivingDocumentation` and `HarmonyOsLivingDocumentation` classes, as they were not being used in the code. This improves code cleanliness and reduces potential confusion.
1 parent 72a7af6 commit 025cb95

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/main/kotlin/cc/unitmesh/devti/provider/HarmonyOsLivingDocumentation.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ class HarmonyOsLivingDocumentation : LivingDocumentation {
4040
});
4141
}
4242

43-
val logger = logger<HarmonyOsLivingDocumentation>()
44-
4543
override fun findNearestDocumentationTarget(psiElement: PsiElement): PsiNameIdentifierOwner? {
4644
if (psiElement is PsiNameIdentifierOwner) {
4745
return psiElement

src/main/kotlin/cc/unitmesh/devti/provider/LivingDocumentation.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ interface LivingDocumentation {
5252
private val languageExtension: LanguageExtension<LivingDocumentation> =
5353
LanguageExtension("cc.unitmesh.livingDocumentation")
5454

55-
val logger = logger<LivingDocumentation>()
5655
fun forLanguage(language: Language): LivingDocumentation? {
5756
val documentation = languageExtension.forLanguage(language)
5857
if (documentation != null) {

0 commit comments

Comments
 (0)