diff options
author | Vincent Untz <vuntz@novell.com> | 2009-02-28 02:48:40 +0100 |
---|---|---|
committer | Vincent Untz <vuntz@novell.com> | 2009-02-28 02:48:40 +0100 |
commit | df6a846974896d21c07482dac6282dc25ceeaf56 (patch) | |
tree | b273bcb7a1639045deca743e5b6ab12fc3537435 | |
parent | 8f87fc9073123ccc9637c06b915fb6007d41e88e (diff) |
Remove tracking of the reconnecting state: it's not used.
-rw-r--r-- | src/cups.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -117,7 +117,6 @@ struct CphCupsPrivate http_t *connection; ipp_status_t last_status; char *internal_status; - gboolean reconnecting; }; static GObject *cph_cups_constructor (GType type, @@ -176,7 +175,6 @@ cph_cups_init (CphCups *cups) cups->priv->connection = NULL; cups->priv->last_status = IPP_OK; cups->priv->internal_status = NULL; - cups->priv->reconnecting = FALSE; } gboolean @@ -185,8 +183,6 @@ cph_cups_reconnect (CphCups *cups) int return_value = -1; int i; - cups->priv->reconnecting = TRUE; - for (i = 0; i < MAX_RECONNECT_ATTEMPTS; i++) { return_value = httpReconnect (cups->priv->connection); if (return_value == 0) @@ -194,8 +190,6 @@ cph_cups_reconnect (CphCups *cups) g_usleep (RECONNECT_DELAY); } - cups->priv->reconnecting = FALSE; - if (return_value == 0) return TRUE; else |