From 324da0f6817f9fd409f7963b1c34dd8eb8d7a2b6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 16 Aug 2015 15:08:16 -0400 Subject: autoload/auditory.vim: Remove old functions Delete some old code that isn't used any more. This was when I first made the plugin. These functions were used to start a song when insert mode was activated and stop the song on insert leave. Since we're not playing full songs any more, and our insert sounds are tied to key presses, these functions are no longer needed. --- autoload/auditory.vim | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/autoload/auditory.vim b/autoload/auditory.vim index 1e3d134..1af3d38 100644 --- a/autoload/auditory.vim +++ b/autoload/auditory.vim @@ -2,20 +2,6 @@ let s:script_path = resolve(expand(':p:h')) . '/..' -" Pid -" === - -" Get most recent mplayer pid -function! s:GetPid() - return system("ps | grep mplayer | head -n1 | awk '{printf $1}'") -endfunction - -" Run system kill -function! s:KillPid(pid) - return system("kill " . a:pid) -endfunction - - " Play audio " ========== @@ -27,18 +13,6 @@ endfunction " Insert mode " =========== -" Old functions that would start a song when entering insert mode and stop the -" song when leaving insert mode. -function! s:PlayInsertEnter() - call auditory#Play("/private/test-track.mp3") - let s:insert_mode_pid = s:GetPid() -endfunction - -function! s:PlayInsertLeave() - call s:KillPid(s:insert_mode_pid) -endfunction - - let s:scale = [ \ 'C#3.wav', \ 'C#4.wav', -- cgit v1.2.3