aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:57:37 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:57:37 +0200
commitb332e1cbc8a1e44742ad8815b674a640ef3cdb52 (patch)
tree8e530ce5a2b63cd1ce4c468edd99571f19eb5a3c /src
parentf59986fad5dd8e00beffcd038112d81963408539 (diff)
command: removed commandError()
commandError() has been superseded by command_error(), and is not being used anymore. Remove it.
Diffstat (limited to 'src')
-rw-r--r--src/command.c25
-rw-r--r--src/command.h2
2 files changed, 0 insertions, 27 deletions
diff --git a/src/command.c b/src/command.c
index 4d703498..7ff63385 100644
--- a/src/command.c
+++ b/src/command.c
@@ -23,7 +23,6 @@
#include "directory.h"
#include "volume.h"
#include "stats.h"
-#include "myfprintf.h"
#include "list.h"
#include "permission.h"
#include "buffer2array.h"
@@ -170,22 +169,6 @@ static CommandEntry *newCommandEntry(void)
return cmd;
}
-static void command_error_va(int fd, int error, const char *fmt, va_list args)
-{
- if (current_command && fd != STDERR_FILENO) {
- fdprintf(fd, "ACK [%i@%i] {%s} ",
- (int)error, command_listNum, current_command);
- vfdprintf(fd, fmt, args);
- fdprintf(fd, "\n");
- current_command = NULL;
- } else {
- fdprintf(STDERR_FILENO, "ACK [%i@%i] ",
- (int)error, command_listNum);
- vfdprintf(STDERR_FILENO, fmt, args);
- fdprintf(STDERR_FILENO, "\n");
- }
-}
-
void command_success(struct client *client)
{
client_puts(client, "OK\n");
@@ -1536,11 +1519,3 @@ int processCommand(struct client *client, int *permission, char *commandString)
{
return processCommandInternal(client, permission, commandString, NULL);
}
-
-mpd_fprintf_ void commandError(int fd, int error, const char *fmt, ...)
-{
- va_list args;
- va_start(args, fmt);
- command_error_va(fd, error, fmt, args);
- va_end(args);
-}
diff --git a/src/command.h b/src/command.h
index 594ca272..2b4f1fee 100644
--- a/src/command.h
+++ b/src/command.h
@@ -39,8 +39,6 @@ void initCommands(void);
void finishCommands(void);
-mpd_fprintf_ void commandError(int fd, int error, const char *fmt, ...);
-
void command_success(struct client *client);
mpd_fprintf_ void command_error(struct client *client, int error,