From ac7fba8675ca9a61f93128a0b3c1683f7cce274d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 4 Aug 2004 09:30:30 +0000 Subject: [PATCH] Remove unused code. --- util/marcdump.c | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/util/marcdump.c b/util/marcdump.c index 00d7596..3e97bad 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -1,9 +1,8 @@ /* - * Copyright (c) 1995-2003, Index Data + * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * - * $Id: marcdump.c,v 1.23 2003-12-11 00:37:23 adam Exp $ + * $Id: marcdump.c,v 1.24 2004-08-04 09:30:30 adam Exp $ */ #if HAVE_CONFIG_H @@ -140,34 +139,7 @@ int main (int argc, char **argv) r = yaz_marc_decode_buf (mt, buf, -1, &result, &rlen); if (r <= 0) break; -#if 1 fwrite (result, rlen, 1, stdout); -#else - if (!cd) - fwrite (result, rlen, 1, stdout); - else - { - char outbuf[12]; - size_t inbytesleft = rlen; - const char *inp = result; - - while (inbytesleft) - { - size_t outbytesleft = sizeof(outbuf); - char *outp = outbuf; - size_t r = yaz_iconv (cd, (char**) &inp, - &inbytesleft, - &outp, &outbytesleft); - if (r == (size_t) (-1)) - { - int e = yaz_iconv_error(cd); - if (e != YAZ_ICONV_E2BIG) - break; - } - fwrite (outbuf, outp - outbuf, 1, stdout); - } - } -#endif if (cfile) { char *p = buf; -- 1.7.10.4