summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2010-11-21 13:41:38 +0200
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2010-11-21 13:41:38 +0200
commite7d453774cb9679b858a7a6b1d82f790be23847a (patch)
treef3be96312a4fc72c9845c43188a76020f5b6ba7c /src
parent783d5e4121e90480c04fce4cae374934b830c2f5 (diff)
* mu-msg-str.[ch]: remove functionality which is now in mu-msg-prio.[ch]
Diffstat (limited to 'src')
-rw-r--r--src/mu-msg-str.c27
-rw-r--r--src/mu-msg-str.h12
2 files changed, 3 insertions, 36 deletions
diff --git a/src/mu-msg-str.c b/src/mu-msg-str.c
index 0011d62..5dace97 100644
--- a/src/mu-msg-str.c
+++ b/src/mu-msg-str.c
@@ -58,7 +58,7 @@ const char*
mu_msg_str_display_date_s (time_t t)
{
time_t now;
- static const guint SECS_IN_DAY = 24 * 60 * 60;
+ static const time_t SECS_IN_DAY = 24 * 60 * 60;
now = time (NULL);
@@ -83,7 +83,8 @@ mu_msg_str_size_s (size_t s)
#else
if (s >= 1000 * 1000)
- g_snprintf(buf, sizeof(buf), "%.1f MB", (double)s/(1000*1000));
+ g_snprintf(buf, sizeof(buf), "%.1f MB",
+ (double)s/(1000*1000));
else
g_snprintf(buf, sizeof(buf), "%.1f kB", (double)s/(1000));
#endif /*HAVE_GLIB216*/
@@ -110,28 +111,6 @@ mu_msg_str_flags (MuMsgFlags flags)
return g_strdup (mu_msg_str_flags_s(flags));
}
-const char*
-mu_msg_str_prio (MuMsgPrio prio)
-{
- switch (prio) {
-
- case MU_MSG_PRIO_LOW:
- return "low";
-
- case MU_MSG_PRIO_NONE:
- case MU_MSG_PRIO_NORMAL:
- return "normal";
-
- case MU_MSG_PRIO_HIGH:
- return "high";
-
- default:
- g_warning ("%s: invalid priority %d", __FUNCTION__, prio);
- return NULL;
- }
-}
-
-
char*
mu_msg_str_summarize (const char* str, size_t max_lines)
{
diff --git a/src/mu-msg-str.h b/src/mu-msg-str.h
index 1406837..7c842c9 100644
--- a/src/mu-msg-str.h
+++ b/src/mu-msg-str.h
@@ -119,18 +119,6 @@ char* mu_msg_str_flags (MuMsgFlags flags) G_GNUC_WARN_UNUSED_RESULT;
/**
- * get a display string for a message priority; either
- * high, low or normal
- *
- * @param flags file flags
- *
- * @return a string representation of the priority; see above
- * for what to do with it, or NULL in case of error
- */
-const char* mu_msg_str_prio (MuMsgPrio prio) G_GNUC_CONST;
-
-
-/**
* get a 'summary' of the string, ie. the first /n/ lines of the
* strings, with all newlines removed, replaced by single spaces
*