changeset 59:4cda41f830c3

Remove unused code after previous commit.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 05 May 2015 21:49:00 -0700
parents f00ae5797e48
children 9e768b83d701
files autoload/gutentags.vim
diffstat 1 files changed, 3 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags.vim	Tue May 05 21:47:34 2015 -0700
+++ b/autoload/gutentags.vim	Tue May 05 21:49:00 2015 -0700
@@ -208,18 +208,10 @@
 " queue_mode:
 "   0: if an update is already in progress, report it and abort.
 "   1: if an update is already in progress, queue another one.
-"
-" An additional argument specifies where to write the tags file. If nothing
-" is specified, it will go to the gutentags-defined file.
-function! s:update_tags(module, write_mode, queue_mode, ...) abort
+function! s:update_tags(module, write_mode, queue_mode) abort
     " Figure out where to save.
-    if a:0 == 1
-        let l:tags_file = a:1
-        let l:proj_dir = fnamemodify(a:1, ':h')
-    else
-        let l:tags_file = b:gutentags_files[a:module]
-        let l:proj_dir = b:gutentags_root
-    endif
+    let l:tags_file = b:gutentags_files[a:module]
+    let l:proj_dir = b:gutentags_root
 
     " Check that there's not already an update in progress.
     let l:lock_file = l:tags_file . '.lock'