Pārlūkot izejas kodu

refactor: withdraw double install check

Becasue Vue 3 already warns if we try to install store twice.
Kia Ishii 5 gadi atpakaļ
vecāks
revīzija
9a7982961b
1 mainītis faili ar 0 papildinājumiem un 15 dzēšanām
  1. 0 15
      src/store.js

+ 0 - 15
src/store.js

@@ -4,8 +4,6 @@ import devtoolPlugin from './plugins/devtool'
 import ModuleCollection from './module/module-collection'
 import { forEachValue, isObject, isPromise, assert, partial } from './util'
 
-// let Vue // bind on install
-
 export function createStore (options) {
   return new Store(options)
 }
@@ -78,19 +76,6 @@ export class Store {
   }
 
   install (app, injectKey) {
-    // TODO: Removing double install check for now. Maybe we can bring this
-    // feature back again if needed.
-    //
-    // if (Vue && _Vue === Vue) {
-    //   if (process.env.NODE_ENV !== 'production') {
-    //     console.error(
-    //       '[vuex] already installed. Vue.use(Vuex) should be called only once.'
-    //     )
-    //   }
-    //   return
-    // }
-    // Vue = _Vue
-
     applyMixin(app, this, injectKey)
   }