aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-03-07 09:29:38 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:48:20 +0300
commit82f249f8297a26ef3fcb9675acebd76476bb40e4 (patch)
treeb9e9ee303383967b534d9f451d4367dd82047ca8 /src/nvim/message.c
parent9a56fcb2e8e97dec1e4ebce1d1287e7ab8a6ee79 (diff)
downloadrneovim-82f249f8297a26ef3fcb9675acebd76476bb40e4.tar.gz
rneovim-82f249f8297a26ef3fcb9675acebd76476bb40e4.tar.bz2
rneovim-82f249f8297a26ef3fcb9675acebd76476bb40e4.zip
message: Remove useless emsg* functions, leaving only emsgf
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 21fd97ed21..e0806d8234 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -557,52 +557,11 @@ int emsg(char_u *s)
return msg_attr(s, attr);
}
-/*
- * Print an error message with one "%s" and one string argument.
- */
-int emsg2(char_u *s, char_u *a1)
-{
- return emsg3(s, a1, NULL);
-}
-
void emsg_invreg(int name)
{
EMSG2(_("E354: Invalid register name: '%s'"), transchar(name));
}
-/// Print an error message with one or two "%s" and one or two string arguments.
-int emsg3(char_u *s, char_u *a1, char_u *a2)
-{
- if (emsg_not_now()) {
- return TRUE; // no error messages at the moment
- }
-
- vim_snprintf((char *)IObuff, IOSIZE, (char *)s, a1, a2);
- return emsg(IObuff);
-}
-
-/// Print an error message with one "%" PRId64 and one (int64_t) argument.
-int emsgn(char_u *s, int64_t n)
-{
- if (emsg_not_now()) {
- return TRUE; // no error messages at the moment
- }
-
- vim_snprintf((char *)IObuff, IOSIZE, (char *)s, n);
- return emsg(IObuff);
-}
-
-/// Print an error message with one "%" PRIu64 and one (uint64_t) argument.
-int emsgu(char_u *s, uint64_t n)
-{
- if (emsg_not_now()) {
- return TRUE; // no error messages at the moment
- }
-
- vim_snprintf((char *)IObuff, IOSIZE, (char *)s, n);
- return emsg(IObuff);
-}
-
/// Print an error message with unknown number of arguments
bool emsgf(const char *const fmt, ...)
{