Mercurial > vim
comparison src/map.c @ 29572:fdfb36298114 v9.0.0127
patch 9.0.0127: unused variable
Commit: https://github.com/vim/vim/commit/e95f22f63a1871b91e5508088e5ae4905ce28cd7
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon Aug 1 11:49:45 2022 +0100
patch 9.0.0127: unused variable
Problem: Unused variable.
Solution: Remove the variable. (closes https://github.com/vim/vim/issues/10829)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Aug 2022 13:00:04 +0200 |
parents | 827d9f2b7a71 |
children | 86eb4aba16c3 |
comparison
equal
deleted
inserted
replaced
29571:ac4e168fcae2 | 29572:fdfb36298114 |
---|---|
2580 * "mapset()" function | 2580 * "mapset()" function |
2581 */ | 2581 */ |
2582 void | 2582 void |
2583 f_mapset(typval_T *argvars, typval_T *rettv UNUSED) | 2583 f_mapset(typval_T *argvars, typval_T *rettv UNUSED) |
2584 { | 2584 { |
2585 char_u *keys_buf = NULL; | |
2586 char_u *which; | 2585 char_u *which; |
2587 int mode; | 2586 int mode; |
2588 char_u buf[NUMBUFLEN]; | 2587 char_u buf[NUMBUFLEN]; |
2589 int is_abbr; | 2588 int is_abbr; |
2590 dict_T *d; | 2589 dict_T *d; |
2705 nowait, silent, mode, is_abbr, expr, sid, scriptversion, lnum, 0); | 2704 nowait, silent, mode, is_abbr, expr, sid, scriptversion, lnum, 0); |
2706 if (lhsrawalt != NULL) | 2705 if (lhsrawalt != NULL) |
2707 (void)map_add(map_table, abbr_table, lhsrawalt, rhs, orig_rhs, noremap, | 2706 (void)map_add(map_table, abbr_table, lhsrawalt, rhs, orig_rhs, noremap, |
2708 nowait, silent, mode, is_abbr, expr, sid, scriptversion, | 2707 nowait, silent, mode, is_abbr, expr, sid, scriptversion, |
2709 lnum, 1); | 2708 lnum, 1); |
2710 vim_free(keys_buf); | |
2711 vim_free(arg_buf); | 2709 vim_free(arg_buf); |
2712 } | 2710 } |
2713 #endif | 2711 #endif |
2714 | 2712 |
2715 | 2713 |