From 5a8e7cac48386b731dc24e38619197075db96cbf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 21 Oct 2008 08:47:50 +0200 Subject: [PATCH] Removed unused client states: Disconnected, Stopped, Continue. --- src/client.c | 9 ++------- src/client.h | 4 +--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/client.c b/src/client.c index 1acd2ea..edb5156 100644 --- a/src/client.c +++ b/src/client.c @@ -74,7 +74,6 @@ struct client { char *cqlquery; // used for SRU targets only int hits; int record_offset; - int setno; int diagnostic; enum client_state state; struct show_raw *show_raw; @@ -99,9 +98,7 @@ static const char *client_states[] = { "Client_Working", "Client_Error", "Client_Failed", - "Client_Disconnected", - "Client_Stopped", - "Client_Continue" + "Client_Disconnected" }; static struct client *client_freelist = 0; @@ -488,7 +485,6 @@ struct client *client_create(void) r->session = 0; r->hits = 0; r->record_offset = 0; - r->setno = 0; r->diagnostic = 0; r->state = Client_Disconnected; r->show_raw = 0; @@ -647,8 +643,7 @@ void client_set_session(struct client *cl, struct session *se) int client_is_active(struct client *cl) { - if (cl->connection && (cl->state == Client_Continue || - cl->state == Client_Connecting || + if (cl->connection && (cl->state == Client_Connecting || cl->state == Client_Working)) return 1; return 0; diff --git a/src/client.h b/src/client.h index d7cb149..dfa700a 100644 --- a/src/client.h +++ b/src/client.h @@ -34,9 +34,7 @@ enum client_state Client_Working, Client_Error, Client_Failed, - Client_Disconnected, - Client_Stopped, - Client_Continue + Client_Disconnected }; int client_show_raw_begin(struct client *cl, int position, -- 1.7.10.4