From: Adam Dickmeiss Date: Thu, 11 Aug 2005 18:53:01 +0000 (+0000) Subject: Remove unused variables X-Git-Tag: YAZPP.ERE2~1 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=e19d9fe1d9e538d9978cfcb3c2685ba0f234e6b5;p=yazpp-moved-to-github.git Remove unused variables --- diff --git a/zlint/test-init-02.cpp b/zlint/test-init-02.cpp index 8820d4e..c8a5c50 100644 --- a/zlint/test-init-02.cpp +++ b/zlint/test-init-02.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-init-02.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $ + * $Id: test-init-02.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $ */ #include @@ -45,7 +45,6 @@ Zlint_code Zlint_test_init_02::recv_gdu(Zlint *z, Z_GDU *gdu) { Z_InitResponse *init = gdu->u.z3950->u.initResponse; int ver = z->initResponseGetVersion(init); - int result = init->result ? *init->result : 0; if (ver != 2) z->msg_check_fail("got version %d, expected 2", ver); z->msg_check_ok(); diff --git a/zlint/test-init-03.cpp b/zlint/test-init-03.cpp index 40c1218..3f76c46 100644 --- a/zlint/test-init-03.cpp +++ b/zlint/test-init-03.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-init-03.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $ + * $Id: test-init-03.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $ */ #include @@ -46,7 +46,6 @@ Zlint_code Zlint_test_init_03::recv_gdu(Zlint *z, Z_GDU *gdu) { Z_InitResponse *init = gdu->u.z3950->u.initResponse; int ver = z->initResponseGetVersion(init); - int result = init->result ? *init->result : 0; if (ver < 2 || ver > 5) z->msg_check_fail("%sgot version %d, expected 2-5", ver); diff --git a/zlint/test-init-04.cpp b/zlint/test-init-04.cpp index 297396d..c12bdd8 100644 --- a/zlint/test-init-04.cpp +++ b/zlint/test-init-04.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-init-04.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $ + * $Id: test-init-04.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $ */ #include @@ -46,8 +46,6 @@ Zlint_code Zlint_test_init_04::recv_gdu(Zlint *z, Z_GDU *gdu) gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse) { Z_InitResponse *init = gdu->u.z3950->u.initResponse; - int ver = z->initResponseGetVersion(init); - int result = init->result ? *init->result : 0; if (!init->referenceId) z->msg_check_fail("missing referenceID from init response"); diff --git a/zlint/test-init-05.cpp b/zlint/test-init-05.cpp index 59ae15c..3028da4 100644 --- a/zlint/test-init-05.cpp +++ b/zlint/test-init-05.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-init-05.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $ + * $Id: test-init-05.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $ */ #include @@ -66,7 +66,6 @@ Zlint_code Zlint_test_init_05::recv_gdu(Zlint *z, Z_GDU *gdu) gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse) { Z_InitResponse *init = gdu->u.z3950->u.initResponse; - int ver = z->initResponseGetVersion(init); int result = init->result ? *init->result : 0; if (m_init_response_no == 0) diff --git a/zlint/test-init-06.cpp b/zlint/test-init-06.cpp index a2956b3..a79e16a 100644 --- a/zlint/test-init-06.cpp +++ b/zlint/test-init-06.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-init-06.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $ + * $Id: test-init-06.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $ */ #include @@ -47,8 +47,6 @@ Zlint_code Zlint_test_init_06::recv_gdu(Zlint *z, Z_GDU *gdu) gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse) { Z_InitResponse *init = gdu->u.z3950->u.initResponse; - int ver = z->initResponseGetVersion(init); - int result = init->result ? *init->result : 0; if (init->options) { diff --git a/zlint/test-init-07.cpp b/zlint/test-init-07.cpp index eb72b30..fb91d37 100644 --- a/zlint/test-init-07.cpp +++ b/zlint/test-init-07.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-init-07.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $ + * $Id: test-init-07.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $ */ #include @@ -75,8 +75,6 @@ Zlint_code Zlint_test_init_07::recv_gdu(Zlint *z, Z_GDU *gdu) gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse) { Z_InitResponse *init = gdu->u.z3950->u.initResponse; - int ver = z->initResponseGetVersion(init); - int result = init->result ? *init->result : 0; if (ODR_MASK_GET(init->options, Z_Options_negotiationModel)) { diff --git a/zlint/test-init-08.cpp b/zlint/test-init-08.cpp index 63b001b..9d99711 100644 --- a/zlint/test-init-08.cpp +++ b/zlint/test-init-08.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-init-08.cpp,v 1.4 2005-06-25 15:53:21 adam Exp $ + * $Id: test-init-08.cpp,v 1.5 2005-08-11 18:53:01 adam Exp $ */ #include @@ -49,8 +49,6 @@ Zlint_code Zlint_test_init_08::recv_gdu(Zlint *z, Z_GDU *gdu) gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse) { Z_InitResponse *init = gdu->u.z3950->u.initResponse; - int ver = z->initResponseGetVersion(init); - int result = init->result ? *init->result : 0; if (m_no * m_no * 100000 + 2000 < *init->maximumRecordSize) z->msg_check_fail("maximumRecordSize bigger than proposed size"); diff --git a/zlint/test-search-01.cpp b/zlint/test-search-01.cpp index f537bc3..7f3adab 100644 --- a/zlint/test-search-01.cpp +++ b/zlint/test-search-01.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2004, Index Data. * See the file LICENSE for details. * - * $Id: test-search-01.cpp,v 1.5 2005-06-25 15:53:21 adam Exp $ + * $Id: test-search-01.cpp,v 1.6 2005-08-11 18:53:01 adam Exp $ */ #include @@ -173,7 +173,6 @@ Zlint_code Zlint_test_search_01::recv_gdu(Zlint *z, Z_GDU *gdu) gdu->u.z3950 && gdu->u.z3950->which == Z_APDU_initResponse) { Z_InitResponse *init = gdu->u.z3950->u.initResponse; - int ver = z->initResponseGetVersion(init); int result = init->result ? *init->result : 0; if (!result) {