1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:50:04 +08:00

refactor(chat): remove debug function

This commit is contained in:
Shidong Wang 2021-10-28 17:03:52 +08:00
parent 229f66f56c
commit d969cf80f6
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 0 additions and 21 deletions

View File

@ -316,15 +316,6 @@ fu! s:windowsinit() abort
setl filetype=vimchat
endf
function! s:debug() abort
tabnew
for line in s:debug_log
call append(line('$'), line)
endfor
nnoremap <buffer><silent> q :bd!<CR>
endfunction
let s:enter_history = []
function! s:enter() abort
if s:c_begin . s:c_char . s:c_end =~# '/quit\s*'
@ -497,6 +488,3 @@ function! s:send(msg) abort
call ch_sendraw(s:channel, a:msg ."\n")
endif
endfunction
call chat#debug#defind('chatting', function('s:debug'))

View File

@ -1,9 +0,0 @@
let s:debug_func = {}
function! chat#debug#defind(key, value) abort
call extend(s:debug_func, {a:key : a:value})
endfunction
function! chat#debug#getLog(key) abort
call call(s:debug_func[a:key],[])
endfunction