From bcc1e00b8a0c05fe59668f247bf7a54a1653d159 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 4 Mar 2021 16:27:31 +0100 Subject: [PATCH] refactor: dead code --- src/store.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/store.ts b/src/store.ts index cd5c411a..15042c6d 100644 --- a/src/store.ts +++ b/src/store.ts @@ -77,22 +77,6 @@ function computedFromState( return reactiveObject } -function toComputed(refObject: Ref) { - // let asComputed = computed() - const reactiveObject = {} as { - [k in keyof T]: Ref - } - for (const key in refObject.value) { - // @ts-ignore: the key matches - reactiveObject[key] = computed({ - get: () => refObject.value[key as keyof T], - set: (value) => (refObject.value[key as keyof T] = value), - }) - } - - return reactiveObject -} - /** * Creates a store with its state object. This is meant to be augmented with getters and actions * -- 2.47.3