Code

main: remove unused function sigstop()
[ncmpc.git] / src / screen_client.c
index 7bde290e54160877fb5b0e956f5b8e7c624f1a2e..c70257fe7020891658a4f727d65b74c7a5e267da 100644 (file)
  */
 
 #include "screen_client.h"
-#include "screen_utils.h"
 #include "screen_status.h"
 #include "mpdclient.h"
 #include "i18n.h"
 #include "charset.h"
 
-static bool
-_screen_auth(struct mpdclient *c, gint recursion)
-{
-       struct mpd_connection *connection = mpdclient_get_connection(c);
-       if (connection == NULL)
-               return false;
-
-       mpd_connection_clear_error(connection);
-       if (recursion > 2)
-               return false;
-
-       char *password = screen_read_password(NULL);
-       if (password == NULL)
-               return false;
-
-       mpd_send_password(connection, password);
-       g_free(password);
-
-       mpd_response_finish(connection);
-       mpdclient_update(c);
-
-       if (mpd_connection_get_error(connection) == MPD_ERROR_SERVER &&
-           mpd_connection_get_server_error(connection) == MPD_SERVER_ERROR_PASSWORD)
-               return  _screen_auth(c, ++recursion);
-
-       return true;
-}
-
-bool
-screen_auth(struct mpdclient *c)
-{
-       return _screen_auth(c, 0);
-}
-
-void
-mpdclient_ui_error(const char *message_utf8)
-{
-       char *message_locale = utf8_to_locale(message_utf8);
-       screen_status_printf("%s", message_locale);
-       g_free(message_locale);
-
-       screen_bell();
-       doupdate();
-}
-
 void
 screen_database_update(struct mpdclient *c, const char *path)
 {
@@ -90,10 +44,6 @@ screen_database_update(struct mpdclient *c, const char *path)
                return;
        }
 
-       /* set update_id to make sure the browse callback gets called
-          even if the update has finished before status is updated */
-       c->update_id = id;
-
        if (path != NULL && *path != 0) {
                char *path_locale = utf8_to_locale(path);
                screen_status_printf(_("Database update of %s started"), path);