removed OCC state
authorSree Harsha Totakura <totakura@in.tum.de>
Fri, 14 Sep 2012 11:31:43 +0000 (11:31 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Fri, 14 Sep 2012 11:31:43 +0000 (11:31 +0000)
src/testbed/gnunet-service-testbed.c

index 67ab0688a977fe01482e5db6f3b3fed30913874c..9899f74913190aed1a2e000ebd2cdb8d78239579 100644 (file)
@@ -323,29 +323,6 @@ struct Peer
 };
 
 
-/**
- * State information for overlay connect context
- */
-enum OCCState
-{
-    /**
-     * Initial state
-     */
-  OCC_STATE_INIT,
-
-    /**
-     * Peer 1 has connected to peer0
-     */
-  OCC_STATE_PEER0_SUCCESS,
-
-    /**
-     * Peer 2 has connected to peer1
-     */
-  OCC_STATE_PEER1_SUCCESS,
-
-};
-
-
 /**
  * Context information for connecting 2 peers in overlay
  */
@@ -422,12 +399,6 @@ struct OverlayConnectContext
    */
   GNUNET_SCHEDULER_TaskIdentifier timeout_task;
 
-  /**
-   * State information for determining whose HELLOs have been successfully
-   * exchanged
-   */
-  enum OCCState state;
-
 };
 
 
@@ -2235,7 +2206,6 @@ handle_overlay_connect (void *cls, struct GNUNET_SERVER_Client *client,
   occ = GNUNET_malloc (sizeof (struct OverlayConnectContext));
   GNUNET_SERVER_client_keep (client);
   occ->client = client;
-  occ->state = OCC_STATE_INIT;
   occ->peer = peer_list[p1];
   occ->other_peer = peer_list[p2];
   occ->op_id = GNUNET_ntohll (msg->operation_id);