Commit 8e7be51e 8e7be51ea5284ad0c623efaca40c020f975dda9c by Sergey Poznyakoff

Remove unused functions

1 parent 7082d58f
......@@ -80,24 +80,6 @@ mu_check_perm (const char *name, int mode)
}
static char *
strip_suffix (const char *name, const char *suffix)
{
int nlen = strlen (name);
int slen = strlen (suffix);
char *p;
if (nlen > slen && strcmp (name + nlen - slen, suffix) == 0)
{
p = xmalloc (nlen - slen + 1);
memcpy (p, name, nlen - slen);
p[nlen - slen] = 0;
}
else
p = xstrdup (name);
return p;
}
static char *
make_db_name (const char *name, const char *suffix)
{
int nlen = strlen (name);
......
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2003,
2004, 2005 Free Software Foundation, Inc.
2004, 2005, 2007 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -98,18 +98,6 @@ static struct info_map {
};
#define info_map_size (sizeof (info_map) / sizeof (info_map[0]))
/* FIXME: is not used */
static int
info_map_letter (int c)
{
struct info_map *p;
for (p = info_map; p < info_map + info_map_size; p++)
if (p->letter == c)
return p->flag;
return 0;
}
/* NOTE: BUF must be at least 7 bytes long */
static int
flags_to_info (int flags, char *buf)
......
......@@ -279,14 +279,6 @@ print_fmt_string (struct mh_machine *mach, size_t fmtwidth, char *str)
}
}
/* FIXME: width? */
static void
print_obj (struct mh_machine *mach, size_t width, strobj_t *obj)
{
if (!strobj_is_null (obj))
print_string (mach, 0, strobj_ptr (obj));
}
static void
reset_fmt_defaults (struct mh_machine *mach)
{
......