diff options
| author | Teddy Wing | 2015-08-16 15:08:16 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-08-16 15:09:22 -0400 |
| commit | 324da0f6817f9fd409f7963b1c34dd8eb8d7a2b6 (patch) | |
| tree | d1865c53de91c2bd490633aee9ed04b269a42869 | |
| parent | 1c9fe852b40d4e7a883bcdc71c91abdd023514bb (diff) | |
| download | auditory.vim-324da0f6817f9fd409f7963b1c34dd8eb8d7a2b6.tar.bz2 | |
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.
| -rw-r--r-- | autoload/auditory.vim | 26 |
1 files changed, 0 insertions, 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('<sfile>: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', |
