diff --git a/packages/behavior/context/index.js b/packages/behavior/context/index.js index 8988f66..f27b1bd 100644 --- a/packages/behavior/context/index.js +++ b/packages/behavior/context/index.js @@ -65,35 +65,8 @@ class Context extends Map { } } -class TypedContext extends Context { - - constructor(iterator) { - super(iterator); - - this.types = {}; - } - - add(key, value, type) { - super.add(key, value); - if (!type) { - return; - } - this.types = { - ...this.types, - [key]: type, - }; - } - -} - export function createContext() { const context = new Context(); context.add('global', new Globals()); return context; } - -export function createTypedContext() { - const context = new TypedContext(); - context.add('global', new Globals(), 'globals'); - return context; -} diff --git a/packages/behavior/index.js b/packages/behavior/index.js index 936fd92..7cc0a74 100644 --- a/packages/behavior/index.js +++ b/packages/behavior/index.js @@ -1,4 +1,4 @@ -export {createContext, createTypedContext} from './context'; +export {createContext} from './context'; export {TypeMap} from './context/types'; export { get as getType,