From e19d9fe1d9e538d9978cfcb3c2685ba0f234e6b5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 11 Aug 2005 18:53:01 +0000 Subject: [PATCH] Remove unused variables --- zlint/test-init-02.cpp | 3 +-- zlint/test-init-03.cpp | 3 +-- zlint/test-init-04.cpp | 4 +--- zlint/test-init-05.cpp | 3 +-- zlint/test-init-06.cpp | 4 +--- zlint/test-init-07.cpp | 4 +--- zlint/test-init-08.cpp | 4 +--- zlint/test-search-01.cpp | 3 +-- 8 files changed, 8 insertions(+), 20 deletions(-) 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) { -- 1.7.10.4