Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 7c / 6afa6fbbd6a7982063b3ee71810d2eb69a5bb3
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 92384429E36\r
6         for <notmuch@notmuchmail.org>; Fri,  4 Nov 2011 13:25:28 -0700 (PDT)\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 yC+rHL0XdkP4 for <notmuch@notmuchmail.org>;\r
17         Fri,  4 Nov 2011 13:25:27 -0700 (PDT)\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 49AB7429E34\r
22         for <notmuch@notmuchmail.org>; Fri,  4 Nov 2011 13:25:25 -0700 (PDT)\r
23 Received: by mail-fx0-f53.google.com with SMTP id n15so52582faa.26\r
24         for <notmuch@notmuchmail.org>; Fri, 04 Nov 2011 13:25:24 -0700 (PDT)\r
25 Received: by 10.223.75.129 with SMTP id y1mr10585032faj.34.1320438324850;\r
26         Fri, 04 Nov 2011 13:25:24 -0700 (PDT)\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 g25sm18284527fae.16.2011.11.04.13.25.23\r
30         (version=SSLv3 cipher=OTHER); Fri, 04 Nov 2011 13:25:24 -0700 (PDT)\r
31 From: Jani Nikula <jani@nikula.org>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH v3 3/7] cli: drop unused code from notmuch count\r
34 Date: Fri,  4 Nov 2011 22:25:11 +0200\r
35 Message-Id:\r
36  <12769872f927c01bfe5ebe2af3bf69549bd3129a.1320349030.git.jani@nikula.org>\r
37 X-Mailer: git-send-email 1.7.5.4\r
38 In-Reply-To: <cover.1320349030.git.jani@nikula.org>\r
39 References: <cover.1320349030.git.jani@nikula.org>\r
40 In-Reply-To: <cover.1320349030.git.jani@nikula.org>\r
41 References: <cover.1320349030.git.jani@nikula.org>\r
42 Cc: amdragon@mit.edu\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Fri, 04 Nov 2011 20:25:29 -0000\r
56 \r
57 Remove unused code within #if 0 blocks from notmuch count.\r
58 \r
59 Signed-off-by: Jani Nikula <jani@nikula.org>\r
60 ---\r
61  notmuch-count.c |   32 --------------------------------\r
62  1 files changed, 0 insertions(+), 32 deletions(-)\r
63 \r
64 diff --git a/notmuch-count.c b/notmuch-count.c\r
65 index 0d700a9..a35be40 100644\r
66 --- a/notmuch-count.c\r
67 +++ b/notmuch-count.c\r
68 @@ -29,11 +29,6 @@ notmuch_count_command (void *ctx, int argc, char *argv[])\r
69      notmuch_query_t *query;\r
70      char *query_str;\r
71      int i;\r
72 -#if 0\r
73 -    char *opt, *end;\r
74 -    int i, first = 0, max_threads = -1;\r
75 -    notmuch_sort_t sort = NOTMUCH_SORT_NEWEST_FIRST;\r
76 -#endif\r
77  \r
78      argc--; argv++; /* skip subcommand argument */\r
79  \r
80 @@ -42,33 +37,6 @@ notmuch_count_command (void *ctx, int argc, char *argv[])\r
81             i++;\r
82             break;\r
83         }\r
84 -#if 0\r
85 -       if (STRNCMP_LITERAL (argv[i], "--first=") == 0) {\r
86 -           opt = argv[i] + sizeof ("--first=") - 1;\r
87 -           first = strtoul (opt, &end, 10);\r
88 -           if (*opt == '\0' || *end != '\0') {\r
89 -               fprintf (stderr, "Invalid value for --first: %s\n", opt);\r
90 -               return 1;\r
91 -           }\r
92 -       } else if (STRNCMP_LITERAL (argv[i], "--max-threads=") == 0) {\r
93 -           opt = argv[i] + sizeof ("--max-threads=") - 1;\r
94 -           max_threads = strtoul (opt, &end, 10);\r
95 -           if (*opt == '\0' || *end != '\0') {\r
96 -               fprintf (stderr, "Invalid value for --max-threads: %s\n", opt);\r
97 -               return 1;\r
98 -           }\r
99 -       } else if (STRNCMP_LITERAL (argv[i], "--sort=") == 0) {\r
100 -           opt = argv[i] + sizeof ("--sort=") - 1;\r
101 -           if (strcmp (opt, "oldest-first") == 0) {\r
102 -               sort = NOTMUCH_SORT_OLDEST_FIRST;\r
103 -           } else if (strcmp (opt, "newest-first") == 0) {\r
104 -               sort = NOTMUCH_SORT_NEWEST_FIRST;\r
105 -           } else {\r
106 -               fprintf (stderr, "Invalid value for --sort: %s\n", opt);\r
107 -               return 1;\r
108 -           }\r
109 -       } else\r
110 -#endif\r
111         {\r
112             fprintf (stderr, "Unrecognized option: %s\n", argv[i]);\r
113             return 1;\r
114 -- \r
115 1.7.5.4\r
116 \r