Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 5e / 37acd55d71c2306a4bf438f73d5505a231fb28
1 Return-Path: <jani@nikula.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 1E6A1429E32\r
6         for <notmuch@notmuchmail.org>; Sun,  6 Nov 2011 13:47:31 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id vZBA0Klyt8j4 for <notmuch@notmuchmail.org>;\r
17         Sun,  6 Nov 2011 13:47:30 -0800 (PST)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 0F74A429E2F\r
22         for <notmuch@notmuchmail.org>; Sun,  6 Nov 2011 13:47:29 -0800 (PST)\r
23 Received: by mail-fx0-f53.google.com with SMTP id n15so1762114faa.26\r
24         for <notmuch@notmuchmail.org>; Sun, 06 Nov 2011 13:47:29 -0800 (PST)\r
25 Received: by 10.223.61.131 with SMTP id t3mr13512942fah.26.1320616049659;\r
26         Sun, 06 Nov 2011 13:47:29 -0800 (PST)\r
27 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.\r
28         [80.220.92.23])\r
29         by mx.google.com with ESMTPS id f4sm20117010faj.1.2011.11.06.13.47.27\r
30         (version=SSLv3 cipher=OTHER); Sun, 06 Nov 2011 13:47:28 -0800 (PST)\r
31 From: Jani Nikula <jani@nikula.org>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH v4 3/6] cli: drop unused code from notmuch count\r
34 Date: Sun,  6 Nov 2011 23:47:12 +0200\r
35 Message-Id:\r
36  <e031a72b18687958114e278bff320734a9200e5b.1320615322.git.jani@nikula.org>\r
37 X-Mailer: git-send-email 1.7.5.4\r
38 In-Reply-To: <cover.1320615322.git.jani@nikula.org>\r
39 References: <cover.1320615322.git.jani@nikula.org>\r
40 In-Reply-To: <cover.1320615322.git.jani@nikula.org>\r
41 References: <cover.1320615322.git.jani@nikula.org>\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Sun, 06 Nov 2011 21:47:31 -0000\r
55 \r
56 Remove unused code within #if 0 blocks from notmuch count.\r
57 \r
58 Signed-off-by: Jani Nikula <jani@nikula.org>\r
59 ---\r
60  notmuch-count.c |   32 --------------------------------\r
61  1 files changed, 0 insertions(+), 32 deletions(-)\r
62 \r
63 diff --git a/notmuch-count.c b/notmuch-count.c\r
64 index 0d700a9..a35be40 100644\r
65 --- a/notmuch-count.c\r
66 +++ b/notmuch-count.c\r
67 @@ -29,11 +29,6 @@ notmuch_count_command (void *ctx, int argc, char *argv[])\r
68      notmuch_query_t *query;\r
69      char *query_str;\r
70      int i;\r
71 -#if 0\r
72 -    char *opt, *end;\r
73 -    int i, first = 0, max_threads = -1;\r
74 -    notmuch_sort_t sort = NOTMUCH_SORT_NEWEST_FIRST;\r
75 -#endif\r
76  \r
77      argc--; argv++; /* skip subcommand argument */\r
78  \r
79 @@ -42,33 +37,6 @@ notmuch_count_command (void *ctx, int argc, char *argv[])\r
80             i++;\r
81             break;\r
82         }\r
83 -#if 0\r
84 -       if (STRNCMP_LITERAL (argv[i], "--first=") == 0) {\r
85 -           opt = argv[i] + sizeof ("--first=") - 1;\r
86 -           first = strtoul (opt, &end, 10);\r
87 -           if (*opt == '\0' || *end != '\0') {\r
88 -               fprintf (stderr, "Invalid value for --first: %s\n", opt);\r
89 -               return 1;\r
90 -           }\r
91 -       } else if (STRNCMP_LITERAL (argv[i], "--max-threads=") == 0) {\r
92 -           opt = argv[i] + sizeof ("--max-threads=") - 1;\r
93 -           max_threads = strtoul (opt, &end, 10);\r
94 -           if (*opt == '\0' || *end != '\0') {\r
95 -               fprintf (stderr, "Invalid value for --max-threads: %s\n", opt);\r
96 -               return 1;\r
97 -           }\r
98 -       } else if (STRNCMP_LITERAL (argv[i], "--sort=") == 0) {\r
99 -           opt = argv[i] + sizeof ("--sort=") - 1;\r
100 -           if (strcmp (opt, "oldest-first") == 0) {\r
101 -               sort = NOTMUCH_SORT_OLDEST_FIRST;\r
102 -           } else if (strcmp (opt, "newest-first") == 0) {\r
103 -               sort = NOTMUCH_SORT_NEWEST_FIRST;\r
104 -           } else {\r
105 -               fprintf (stderr, "Invalid value for --sort: %s\n", opt);\r
106 -               return 1;\r
107 -           }\r
108 -       } else\r
109 -#endif\r
110         {\r
111             fprintf (stderr, "Unrecognized option: %s\n", argv[i]);\r
112             return 1;\r
113 -- \r
114 1.7.5.4\r
115 \r