Removed unused client states: Disconnected, Stopped, Continue.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 21 Oct 2008 06:47:50 +0000 (08:47 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 21 Oct 2008 06:47:50 +0000 (08:47 +0200)
src/client.c
src/client.h

index 1acd2ea..edb5156 100644 (file)
@@ -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;
index d7cb149..dfa700a 100644 (file)
@@ -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,