remove unused header methods.

This commit is contained in:
Miroslav Šedivý 2020-12-29 19:25:39 +01:00
parent 09e1050f8f
commit 398a8a4ab4

View File

@ -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')