Remove an option that is written but never read

This commit is contained in:
EinfachToll 2015-02-03 13:53:56 +01:00
parent de11957fca
commit 3d3586417d
2 changed files with 3 additions and 4 deletions

View File

@ -149,7 +149,6 @@ function! vimwiki#base#setup_buffer_state(idx) " {{{ Init page-specific variable
let subdir = vimwiki#base#current_subdir(a:idx)
call VimwikiSet('subdir', subdir, a:idx)
call VimwikiSet('invsubdir', vimwiki#base#invsubdir(subdir), a:idx)
call VimwikiSet('url', vimwiki#html#get_wikifile_url(expand('%:p')), a:idx)
" update cache
call vimwiki#base#cache_buffer_state()

View File

@ -1544,17 +1544,17 @@ function! s:binary_exists(fname) "{{{
endfunction "}}}
" uses VimwikiGet('path')
function! vimwiki#html#get_wikifile_url(wikifile) "{{{
function! s:get_wikifile_url(wikifile) "{{{
return VimwikiGet('path_html').
\ vimwiki#base#subdir(VimwikiGet('path'), a:wikifile).
\ fnamemodify(a:wikifile, ":t:r").'.html'
endfunction "}}}
function! vimwiki#html#PasteUrl(wikifile) "{{{
execute 'r !echo file://'.vimwiki#html#get_wikifile_url(a:wikifile)
execute 'r !echo file://'.s:get_wikifile_url(a:wikifile)
endfunction "}}}
function! vimwiki#html#CatUrl(wikifile) "{{{
execute '!echo file://'.vimwiki#html#get_wikifile_url(a:wikifile)
execute '!echo file://'.s:get_wikifile_url(a:wikifile)
endfunction "}}}
"}}}