diff --git a/src/component/main.vue b/src/component/main.vue index fcb8846a..2c8bc625 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -240,17 +240,6 @@ this.tabHander = func } - // TODO: Refactor. - public headerEvent(event: string, payload?: any | undefined) { - this.websocket.send('headers/' + event, { payload }) - } - - // TODO: Refactor. - headerHander?: (event: string, payload: any) => any - public headerSubscribe(func: (event: string, payload: any) => any) { - this.headerHander = func - } - ///////////////////////////// // Component lifecycle ///////////////////////////// @@ -282,11 +271,6 @@ if (event.match(/^tabs\//) && this.tabHander) { this.tabHander(event, payload.payload) } - - // TODO: Refactor. - if (event.match(/^headers\//) && this.headerHander) { - this.headerHander(event, payload.payload) - } }) this.websocket.on('connecting', () => { Vue.set(this.state.connection, 'websocket', 'connecting')