shout: removed shout_data.shout_error

That variable is set in handle_shout_error(), but is never read.
This commit is contained in:
Max Kellermann 2009-02-09 16:35:43 +01:00
parent cde4cb944e
commit 044f2561ce
2 changed files with 0 additions and 4 deletions

View File

@ -276,14 +276,12 @@ static int handle_shout_error(struct shout_data *sd, int err)
shout_get_host(sd->shout_conn),
shout_get_port(sd->shout_conn),
shout_get_error(sd->shout_conn));
sd->shout_error = 1;
return -1;
default:
g_warning("shout: connection to %s:%i error: %s\n",
shout_get_host(sd->shout_conn),
shout_get_port(sd->shout_conn),
shout_get_error(sd->shout_conn));
sd->shout_error = 1;
return -1;
}
@ -429,7 +427,6 @@ static int open_shout_conn(void *data)
write_page(sd);
sd->shout_error = 0;
sd->opened = true;
sd->tag_to_send = 1;
sd->conn_attempts = 0;

View File

@ -61,7 +61,6 @@ struct shout_data {
shout_t *shout_conn;
shout_metadata_t *shout_meta;
int shout_error;
const struct shout_encoder_plugin *encoder;
void *encoder_data;