Skip to content

Commit

Permalink
Remove unused tmpfilename function
Browse files Browse the repository at this point in the history
  • Loading branch information
goerz committed Jan 2, 2019
1 parent 90c62c9 commit ea120db
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions plugin/jupytext.vim
Original file line number Diff line number Diff line change
Expand Up @@ -314,20 +314,6 @@ function s:get_jupytext_file(filename, fmt, hiddentemp)
endfunction


function s:tmpfilename(root, extension)
let l:head = fnamemodify(a:root, ':h')
let l:tail = fnamemodify(a:root, ':t')
let i = 1
let l:fname = l:head."/.".i."__".l:tail.".".a:extension
while filereadable(fnameescape(l:fname))
let i = i + 1
let fname = l:head."/.".i."__".l:tail.".".a:extension
endw
call s:debugmsg("tmpfilename: ".l:fname)
return l:fname
endfunction


function s:write_to_ipynb() abort
let filename = resolve(expand("<afile>:p"))
call s:debugmsg("overwriting ".fnameescape(b:jupytext_file))
Expand Down

0 comments on commit ea120db

Please sign in to comment.