diff options
author | Stefan Hoffmann <stefan991@gmail.com> | 2014-05-10 12:25:45 +0200 |
---|---|---|
committer | Stefan Hoffmann <stefan991@gmail.com> | 2014-05-10 12:25:45 +0200 |
commit | 6ec5457308ef70f212cbec1b6e3884f426b7cc0f (patch) | |
tree | 1ca78f5183d78fb70e7244c218b34c2efc64d6a6 /src/fileio.c | |
parent | 1a3ee71de258b416ca6b80f0a9e3b91460df8dc7 (diff) | |
download | rneovim-6ec5457308ef70f212cbec1b6e3884f426b7cc0f.tar.gz rneovim-6ec5457308ef70f212cbec1b6e3884f426b7cc0f.tar.bz2 rneovim-6ec5457308ef70f212cbec1b6e3884f426b7cc0f.zip |
remove unused parameter from `buf_store_file_info`
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/fileio.c b/src/fileio.c index fc23d3765c..4fc73d8ebf 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -442,7 +442,7 @@ readfile ( /* Remember time of file. */ FileInfo file_info; if (os_get_file_info((char *)fname, &file_info)) { - buf_store_file_info(curbuf, &file_info, fname); + buf_store_file_info(curbuf, &file_info); curbuf->b_mtime_read = curbuf->b_mtime; #ifdef UNIX /* @@ -3954,7 +3954,7 @@ nofail: /* Update the timestamp to avoid an "overwrite changed file" * prompt when writing again. */ if (os_get_file_info((char *)fname, &file_info_old)) { - buf_store_file_info(buf, &file_info_old, fname); + buf_store_file_info(buf, &file_info_old); buf->b_mtime_read = buf->b_mtime; } } @@ -5116,7 +5116,7 @@ buf_check_timestamp ( buf->b_orig_size = 0; buf->b_orig_mode = 0; } else { - buf_store_file_info(buf, &file_info, buf->b_ffname); + buf_store_file_info(buf, &file_info); } /* Don't do anything for a directory. Might contain the file @@ -5418,8 +5418,7 @@ void buf_reload(buf_T *buf, int orig_mode) /* Careful: autocommands may have made "buf" invalid! */ } -// TODO(stefan991): remove unused parameter fname -void buf_store_file_info(buf_T *buf, FileInfo *file_info, char_u *fname) +void buf_store_file_info(buf_T *buf, FileInfo *file_info) { buf->b_mtime = (long)file_info->stat.st_mtim.tv_sec; buf->b_orig_size = file_info->stat.st_size; |