summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-01-04 01:05:33 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-01-04 01:05:33 +0100
commit88aa905ee36bdfb631492968eb0f1691beae6235 (patch)
tree13e811a6e3be16a3ab2da1ff8cff1648b6b1e699 /src/core/wee-command.c
parent652bca1ffd565f53414f93e1a73afbe34cbc7923 (diff)
downloadweechat-88aa905ee36bdfb631492968eb0f1691beae6235.zip
Remove unused functions and prototypes
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c50
1 files changed, 4 insertions, 46 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 508927232..7166403e7 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -623,7 +623,6 @@ command_buffer (void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_ERROR;
}
gui_buffer_close (buffer);
- gui_buffer_ask_input_refresh (gui_current_window->buffer, 1);
return WEECHAT_RC_OK;
}
@@ -3330,10 +3329,10 @@ command_window (void *data, struct t_gui_buffer *buffer,
number = strtol (argv[2], &error, 10);
if (error && !error[0]
&& (number > 0) && (number < 100))
- gui_window_split_horiz (gui_current_window, number);
+ gui_window_split_horizontal (gui_current_window, number);
}
else
- gui_window_split_horiz (gui_current_window, 50);
+ gui_window_split_horizontal (gui_current_window, 50);
return WEECHAT_RC_OK;
}
@@ -3347,10 +3346,10 @@ command_window (void *data, struct t_gui_buffer *buffer,
number = strtol (argv[2], &error, 10);
if (error && !error[0]
&& (number > 0) && (number < 100))
- gui_window_split_vertic (gui_current_window, number);
+ gui_window_split_vertical (gui_current_window, number);
}
else
- gui_window_split_vertic (gui_current_window, 50);
+ gui_window_split_vertical (gui_current_window, 50);
return WEECHAT_RC_OK;
}
@@ -3874,44 +3873,3 @@ command_startup (int plugins_loaded)
}
}
}
-
-/*
- * command_print_stdout: print list of commands on standard output
- */
-
-void
-command_print_stdout ()
-{
- struct t_hook *ptr_hook;
-
- for (ptr_hook = weechat_hooks[HOOK_TYPE_COMMAND]; ptr_hook;
- ptr_hook = ptr_hook->next_hook)
- {
- if (!ptr_hook->deleted
- && HOOK_COMMAND(ptr_hook, command)
- && HOOK_COMMAND(ptr_hook, command)[0]
- && !ptr_hook->plugin)
- {
- string_iconv_fprintf (stdout, "* %s",
- HOOK_COMMAND(ptr_hook, command));
- if (HOOK_COMMAND(ptr_hook, args)
- && HOOK_COMMAND(ptr_hook, args)[0])
- {
- string_iconv_fprintf (stdout, " %s\n\n",
- _(HOOK_COMMAND(ptr_hook, args)));
- }
- else
- {
- string_iconv_fprintf (stdout, "\n\n");
- }
- string_iconv_fprintf (stdout, "%s\n\n",
- _(HOOK_COMMAND(ptr_hook, description)));
- if (HOOK_COMMAND(ptr_hook, args_description)
- && HOOK_COMMAND(ptr_hook, args_description)[0])
- {
- string_iconv_fprintf (stdout, "%s\n\n",
- _(HOOK_COMMAND(ptr_hook, args_description)));
- }
- }
- }
-}