Commit 8e7be51e 8e7be51ea5284ad0c623efaca40c020f975dda9c by Sergey Poznyakoff

Remove unused functions

1 parent 7082d58f
...@@ -80,24 +80,6 @@ mu_check_perm (const char *name, int mode) ...@@ -80,24 +80,6 @@ mu_check_perm (const char *name, int mode)
80 } 80 }
81 81
82 static char * 82 static char *
83 strip_suffix (const char *name, const char *suffix)
84 {
85 int nlen = strlen (name);
86 int slen = strlen (suffix);
87 char *p;
88
89 if (nlen > slen && strcmp (name + nlen - slen, suffix) == 0)
90 {
91 p = xmalloc (nlen - slen + 1);
92 memcpy (p, name, nlen - slen);
93 p[nlen - slen] = 0;
94 }
95 else
96 p = xstrdup (name);
97 return p;
98 }
99
100 static char *
101 make_db_name (const char *name, const char *suffix) 83 make_db_name (const char *name, const char *suffix)
102 { 84 {
103 int nlen = strlen (name); 85 int nlen = strlen (name);
......
1 /* GNU Mailutils -- a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2 Copyright (C) 1999, 2000, 2001, 2002, 2003,
3 2004, 2005 Free Software Foundation, Inc. 3 2004, 2005, 2007 Free Software Foundation, Inc.
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
...@@ -98,18 +98,6 @@ static struct info_map { ...@@ -98,18 +98,6 @@ static struct info_map {
98 }; 98 };
99 #define info_map_size (sizeof (info_map) / sizeof (info_map[0])) 99 #define info_map_size (sizeof (info_map) / sizeof (info_map[0]))
100 100
101 /* FIXME: is not used */
102 static int
103 info_map_letter (int c)
104 {
105 struct info_map *p;
106
107 for (p = info_map; p < info_map + info_map_size; p++)
108 if (p->letter == c)
109 return p->flag;
110 return 0;
111 }
112
113 /* NOTE: BUF must be at least 7 bytes long */ 101 /* NOTE: BUF must be at least 7 bytes long */
114 static int 102 static int
115 flags_to_info (int flags, char *buf) 103 flags_to_info (int flags, char *buf)
......
...@@ -279,14 +279,6 @@ print_fmt_string (struct mh_machine *mach, size_t fmtwidth, char *str) ...@@ -279,14 +279,6 @@ print_fmt_string (struct mh_machine *mach, size_t fmtwidth, char *str)
279 } 279 }
280 } 280 }
281 281
282 /* FIXME: width? */
283 static void
284 print_obj (struct mh_machine *mach, size_t width, strobj_t *obj)
285 {
286 if (!strobj_is_null (obj))
287 print_string (mach, 0, strobj_ptr (obj));
288 }
289
290 static void 282 static void
291 reset_fmt_defaults (struct mh_machine *mach) 283 reset_fmt_defaults (struct mh_machine *mach)
292 { 284 {
......