diff --git a/src/main/java/com/maddyhome/idea/vim/helper/VimStandalonePluginUpdateChecker.kt b/src/main/java/com/maddyhome/idea/vim/helper/VimStandalonePluginUpdateChecker.kt deleted file mode 100644 index 1d53b6adc..000000000 --- a/src/main/java/com/maddyhome/idea/vim/helper/VimStandalonePluginUpdateChecker.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2003-2023 The IdeaVim authors - * - * Use of this source code is governed by an MIT-style - * license that can be found in the LICENSE.txt file or at - * https://opensource.org/licenses/MIT. - */ - -package com.maddyhome.idea.vim.helper - -import com.intellij.ide.plugins.StandalonePluginUpdateChecker -import com.intellij.openapi.components.Service -import com.intellij.openapi.components.service -import com.maddyhome.idea.vim.VimPlugin -import com.maddyhome.idea.vim.group.NotificationService -import com.maddyhome.idea.vim.icons.VimIcons - -@Service(Service.Level.APP) -internal class VimStandalonePluginUpdateChecker : StandalonePluginUpdateChecker( - VimPlugin.getPluginId(), - updateTimestampProperty = PROPERTY_NAME, - NotificationService.IDEAVIM_STICKY_GROUP, - VimIcons.IDEAVIM, -) { - - override fun skipUpdateCheck(): Boolean = VimPlugin.isNotEnabled() || "dev" in VimPlugin.getVersion() - - companion object { - private const val PROPERTY_NAME = "ideavim.statistics.timestamp" - fun getInstance(): VimStandalonePluginUpdateChecker = service() - } -} diff --git a/src/main/java/com/maddyhome/idea/vim/listener/VimListenerManager.kt b/src/main/java/com/maddyhome/idea/vim/listener/VimListenerManager.kt index 6f7df7e03..831f8f7c7 100644 --- a/src/main/java/com/maddyhome/idea/vim/listener/VimListenerManager.kt +++ b/src/main/java/com/maddyhome/idea/vim/listener/VimListenerManager.kt @@ -81,7 +81,6 @@ import com.maddyhome.idea.vim.handler.keyCheckRequests import com.maddyhome.idea.vim.helper.CaretVisualAttributesListener import com.maddyhome.idea.vim.helper.GuicursorChangeListener import com.maddyhome.idea.vim.helper.StrictMode -import com.maddyhome.idea.vim.helper.VimStandalonePluginUpdateChecker import com.maddyhome.idea.vim.helper.exitSelectMode import com.maddyhome.idea.vim.helper.exitVisualMode import com.maddyhome.idea.vim.helper.forceBarCursor @@ -485,8 +484,6 @@ internal object VimListenerManager { OpeningEditor(openingEditor, owningEditorWindow, isPreview, canBeReused) ) } - - VimStandalonePluginUpdateChecker.getInstance().pluginUsed() } override fun editorReleased(event: EditorFactoryEvent) {