Mercurial > vim-gutentags
comparison autoload/gutentags.vim @ 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 | 0f5b4a36c920 a14a788e3809 |
comparison
equal
deleted
inserted
replaced
58:f00ae5797e48 | 59:4cda41f830c3 |
---|---|
206 " 1: always generate (overwrite) the tags file. | 206 " 1: always generate (overwrite) the tags file. |
207 " | 207 " |
208 " queue_mode: | 208 " queue_mode: |
209 " 0: if an update is already in progress, report it and abort. | 209 " 0: if an update is already in progress, report it and abort. |
210 " 1: if an update is already in progress, queue another one. | 210 " 1: if an update is already in progress, queue another one. |
211 " | 211 function! s:update_tags(module, write_mode, queue_mode) abort |
212 " An additional argument specifies where to write the tags file. If nothing | |
213 " is specified, it will go to the gutentags-defined file. | |
214 function! s:update_tags(module, write_mode, queue_mode, ...) abort | |
215 " Figure out where to save. | 212 " Figure out where to save. |
216 if a:0 == 1 | 213 let l:tags_file = b:gutentags_files[a:module] |
217 let l:tags_file = a:1 | 214 let l:proj_dir = b:gutentags_root |
218 let l:proj_dir = fnamemodify(a:1, ':h') | |
219 else | |
220 let l:tags_file = b:gutentags_files[a:module] | |
221 let l:proj_dir = b:gutentags_root | |
222 endif | |
223 | 215 |
224 " Check that there's not already an update in progress. | 216 " Check that there's not already an update in progress. |
225 let l:lock_file = l:tags_file . '.lock' | 217 let l:lock_file = l:tags_file . '.lock' |
226 if filereadable(l:lock_file) | 218 if filereadable(l:lock_file) |
227 if a:queue_mode == 1 | 219 if a:queue_mode == 1 |