From 398a8a4ab428e8a8ec5e4dd8289f57539641ea40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Tue, 29 Dec 2020 19:25:39 +0100 Subject: [PATCH] remove unused header methods. --- src/component/main.vue | 16 ---------------- 1 file changed, 16 deletions(-) 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')