From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0A8B8429E21 for ; Tue, 15 Nov 2011 12:09:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9ZQ1wFFRTc+T for ; Tue, 15 Nov 2011 12:09:13 -0800 (PST) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 64B74431FB6 for ; Tue, 15 Nov 2011 12:09:13 -0800 (PST) Received: by bkaq10 with SMTP id q10so8918567bka.26 for ; Tue, 15 Nov 2011 12:09:10 -0800 (PST) Received: by 10.205.132.69 with SMTP id ht5mr17542228bkc.115.1321387750407; Tue, 15 Nov 2011 12:09:10 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id e20sm3071967fab.2.2011.11.15.12.09.08 (version=SSLv3 cipher=OTHER); Tue, 15 Nov 2011 12:09:09 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v7 3/6] cli: drop unused code from notmuch count Date: Tue, 15 Nov 2011 22:08:50 +0200 Message-Id: <2f0798fd37df3cddf6cbae5e651d94e5466ac858.1321386762.git.jani@nikula.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: References: In-Reply-To: References: X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2011 20:09:14 -0000 Remove unused code within #if 0 blocks from notmuch count. Signed-off-by: Jani Nikula --- notmuch-count.c | 32 -------------------------------- 1 files changed, 0 insertions(+), 32 deletions(-) diff --git a/notmuch-count.c b/notmuch-count.c index 0d700a9..a35be40 100644 --- a/notmuch-count.c +++ b/notmuch-count.c @@ -29,11 +29,6 @@ notmuch_count_command (void *ctx, int argc, char *argv[]) notmuch_query_t *query; char *query_str; int i; -#if 0 - char *opt, *end; - int i, first = 0, max_threads = -1; - notmuch_sort_t sort = NOTMUCH_SORT_NEWEST_FIRST; -#endif argc--; argv++; /* skip subcommand argument */ @@ -42,33 +37,6 @@ notmuch_count_command (void *ctx, int argc, char *argv[]) i++; break; } -#if 0 - if (STRNCMP_LITERAL (argv[i], "--first=") == 0) { - opt = argv[i] + sizeof ("--first=") - 1; - first = strtoul (opt, &end, 10); - if (*opt == '\0' || *end != '\0') { - fprintf (stderr, "Invalid value for --first: %s\n", opt); - return 1; - } - } else if (STRNCMP_LITERAL (argv[i], "--max-threads=") == 0) { - opt = argv[i] + sizeof ("--max-threads=") - 1; - max_threads = strtoul (opt, &end, 10); - if (*opt == '\0' || *end != '\0') { - fprintf (stderr, "Invalid value for --max-threads: %s\n", opt); - return 1; - } - } else if (STRNCMP_LITERAL (argv[i], "--sort=") == 0) { - opt = argv[i] + sizeof ("--sort=") - 1; - if (strcmp (opt, "oldest-first") == 0) { - sort = NOTMUCH_SORT_OLDEST_FIRST; - } else if (strcmp (opt, "newest-first") == 0) { - sort = NOTMUCH_SORT_NEWEST_FIRST; - } else { - fprintf (stderr, "Invalid value for --sort: %s\n", opt); - return 1; - } - } else -#endif { fprintf (stderr, "Unrecognized option: %s\n", argv[i]); return 1; -- 1.7.5.4