dovecot-2.2: lib-http: Removed unnecessary code from test-http-c...

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 10 20:38:40 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/7db226db28df
changeset: 16012:7db226db28df
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 10 20:34:49 2013 +0200
description:
lib-http: Removed unnecessary code from test-http-client

diffstat:

 src/lib-http/test-http-client.c |  7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diffs (17 lines):

diff -r 904f78e80fa5 -r 7db226db28df src/lib-http/test-http-client.c
--- a/src/lib-http/test-http-client.c	Sun Mar 10 19:55:45 2013 +0200
+++ b/src/lib-http/test-http-client.c	Sun Mar 10 20:34:49 2013 +0200
@@ -45,13 +45,6 @@
 got_request_response(const struct http_response *response,
 		     struct http_test_request *req)
 {
-	if (response == NULL) {
-		/* request failed */
-		i_free(req);
-		i_error("HTTP REQUEST FAILED");
-		return;
-	}
-
 	if (response->status / 100 != 2) {
 		i_error("HTTP Request failed: %s", response->reason);
 		i_free(req);


More information about the dovecot-cvs mailing list