aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:24:22 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:24:22 +0800
commit05fb3355953415a3d144b3ff7141c3fb830c7752 (patch)
tree590fb6c6144aa3ed435d2e09eeed64d6b0b61ad0 /libempathy
parenteac8ae89de90f0162619f6bc0d103f69b842fe96 (diff)
downloadgsoc2013-empathy-05fb3355953415a3d144b3ff7141c3fb830c7752.tar
gsoc2013-empathy-05fb3355953415a3d144b3ff7141c3fb830c7752.tar.gz
gsoc2013-empathy-05fb3355953415a3d144b3ff7141c3fb830c7752.tar.bz2
gsoc2013-empathy-05fb3355953415a3d144b3ff7141c3fb830c7752.tar.lz
gsoc2013-empathy-05fb3355953415a3d144b3ff7141c3fb830c7752.tar.xz
gsoc2013-empathy-05fb3355953415a3d144b3ff7141c3fb830c7752.tar.zst
gsoc2013-empathy-05fb3355953415a3d144b3ff7141c3fb830c7752.zip
Remove useless empathy_message_get_date_and_time
svn path=/trunk/; revision=1989
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-message.c20
-rw-r--r--libempathy/empathy-message.h2
2 files changed, 0 insertions, 22 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index b45b41a83..a4bfffb42 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -384,26 +384,6 @@ empathy_message_set_timestamp (EmpathyMessage *message,
g_object_notify (G_OBJECT (message), "timestamp");
}
-GDate *
-empathy_message_get_date_and_time (EmpathyMessage *message, time_t *timestamp)
-{
- GDate *date;
-
- *timestamp = 0;
- if (message) {
- *timestamp = empathy_message_get_timestamp (message);
- }
-
- if (timestamp <= 0) {
- *timestamp = empathy_time_get_current ();
- }
-
- date = g_date_new ();
- g_date_set_time_t (date, *timestamp);
-
- return date;
-}
-
#define IS_SEPARATOR(ch) (ch == ' ' || ch == ',' || ch == '.' || ch == ':')
gboolean
empathy_message_should_highlight (EmpathyMessage *message)
diff --git a/libempathy/empathy-message.h b/libempathy/empathy-message.h
index fd3e0735c..b944280b1 100644
--- a/libempathy/empathy-message.h
+++ b/libempathy/empathy-message.h
@@ -68,8 +68,6 @@ void empathy_message_set_body (EmpathyMessage
time_t empathy_message_get_timestamp (EmpathyMessage *message);
void empathy_message_set_timestamp (EmpathyMessage *message,
time_t timestamp);
-GDate * empathy_message_get_date_and_time (EmpathyMessage *message,
- time_t *timestamp);
gboolean empathy_message_should_highlight (EmpathyMessage *message);
TpChannelTextMessageType empathy_message_type_from_str (const gchar *type_str);
const gchar * empathy_message_type_to_str (TpChannelTextMessageType type);