[polari/wip/fmuellner/tracker: 10/15] lib: Remove tp-logger dependency again



commit c44664c466f8210ae7125d887492e44bf0cb1dd4
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 27 10:41:13 2017 +0200

    lib: Remove tp-logger dependency again

 meson.build              |  1 -
 src/lib/polari-message.c | 17 -----------------
 src/lib/polari-message.h |  2 --
 src/meson.build          |  4 ++--
 4 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/meson.build b/meson.build
index 6ff3f80..5d9467f 100644
--- a/meson.build
+++ b/meson.build
@@ -36,7 +36,6 @@ appstream_util = find_program('appstream-util', required: false)
 gio = dependency('gio-2.0', version: '>= 2.43.4')
 gtk3 = dependency('gtk+-3.0', version: '>= 3.21.6')
 telepathy_glib = dependency('telepathy-glib')
-telepathy_logger = dependency('telepathy-logger-0.2')
 tracker = dependency('tracker-sparql-2.0')
 girepository = dependency('gobject-introspection-1.0')
 gjs = dependency('gjs-1.0', version: '>= 1.53.90')
diff --git a/src/lib/polari-message.c b/src/lib/polari-message.c
index 4328627..945fcf4 100644
--- a/src/lib/polari-message.c
+++ b/src/lib/polari-message.c
@@ -72,23 +72,6 @@ polari_message_new_from_tp_message (TpMessage *tp_message)
   return self;
 }
 
-PolariMessage *
-polari_message_new_from_tpl_event (TplEvent *event)
-{
-  TplTextEvent *text_event = TPL_TEXT_EVENT (event);
-  const char *text = tpl_text_event_get_message (text_event);
-  TplEntity *sender = tpl_event_get_sender (event);
-  gint64 timestamp = tpl_event_get_timestamp (event);
-  TpChannelTextMessageType type = tpl_text_event_get_message_type (text_event);
-  gboolean is_self = tpl_entity_get_entity_type (sender) == TPL_ENTITY_SELF;
-
-  return polari_message_new (text,
-                             tpl_entity_get_alias (sender),
-                             g_date_time_new_from_unix_utc (timestamp),
-                             type == TP_CHANNEL_TEXT_MESSAGE_TYPE_ACTION,
-                             is_self);
-}
-
 PolariMessage *
 polari_message_copy (PolariMessage *self)
 {
diff --git a/src/lib/polari-message.h b/src/lib/polari-message.h
index 9deb9a9..dc4c096 100644
--- a/src/lib/polari-message.h
+++ b/src/lib/polari-message.h
@@ -21,7 +21,6 @@
 
 #include <libtracker-sparql/tracker-sparql.h>
 #include <telepathy-glib/telepathy-glib.h>
-#include <telepathy-logger/telepathy-logger.h>
 
 G_BEGIN_DECLS
 
@@ -36,7 +35,6 @@ PolariMessage   *polari_message_new                 (const char *text,
                                                      gboolean    is_action,
                                                      gboolean    is_self);
 PolariMessage   *polari_message_new_from_tp_message (TpMessage *tp_message);
-PolariMessage   *polari_message_new_from_tpl_event  (TplEvent  *tpl_event);
 
 PolariMessage   *polari_message_copy  (PolariMessage *self);
 void             polari_message_free  (PolariMessage *self);
diff --git a/src/meson.build b/src/meson.build
index c0aec8d..b059a8a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -94,7 +94,7 @@ libargs = [
   '-DG_LOG_DOMAIN="Polari"'
 ]
 libpolari = shared_library('polari-1.0', libsources + lib_nongir_sources + lib_resources,
-  dependencies: [gio, gtk3, telepathy_glib, telepathy_logger, tracker],
+  dependencies: [gio, gtk3, telepathy_glib, tracker],
   c_args: libargs,
   install: true,
   install_dir: pkglibdir
@@ -119,7 +119,7 @@ gnome.generate_gir(libpolari,
   namespace: 'Polari',
   symbol_prefix: 'polari',
   identifier_prefix: 'Polari',
-  includes: ['Gio-2.0', 'Gtk-3.0', 'TelepathyGLib-0.12', 'TelepathyLogger-0.2', 'Tracker-2.0'],
+  includes: ['Gio-2.0', 'Gtk-3.0', 'TelepathyGLib-0.12', 'Tracker-2.0'],
   extra_args: '--quiet',
   install_dir_gir: girdir,
   install_dir_typelib: typelibdir,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]