telepathy-logger: Drop unused TplChannel
Xavier Claessens
xclaesse at kemper.freedesktop.org
Thu Jul 5 08:06:44 PDT 2012
Module: telepathy-logger
Branch: master
Commit: 5edee51380b2c043df73bea781c13f4c3ec520bc
URL: http://cgit.freedesktop.org/telepathy/telepathy-logger/commit/?id=5edee51380b2c043df73bea781c13f4c3ec520bc
Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date: Wed Jul 4 12:41:32 2012 +0200
Drop unused TplChannel
---
telepathy-logger/Makefile.am | 2 -
telepathy-logger/channel-internal.h | 61 ------------------------------
telepathy-logger/channel.c | 70 -----------------------------------
3 files changed, 0 insertions(+), 133 deletions(-)
diff --git a/telepathy-logger/Makefile.am b/telepathy-logger/Makefile.am
index 7f1d44d..d6ad3f8 100644
--- a/telepathy-logger/Makefile.am
+++ b/telepathy-logger/Makefile.am
@@ -54,8 +54,6 @@ libtelepathy_logger_la_SOURCES = \
action-chain-internal.h \
call-event.c \
call-event-internal.h \
- channel-internal.h \
- channel.c \
client-factory.c \
client-factory-internal.h \
conf.c \
diff --git a/telepathy-logger/channel-internal.h b/telepathy-logger/channel-internal.h
deleted file mode 100644
index c98501f..0000000
--- a/telepathy-logger/channel-internal.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (C) 2009 Collabora Ltd.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Authors: Cosimo Alfarano <cosimo.alfarano at collabora.co.uk>
- */
-
-#ifndef __TPL_CHANNEL_H__
-#define __TPL_CHANNEL_H__
-
-#include <gio/gio.h>
-#include <glib.h>
-#include <glib-object.h>
-#include <telepathy-glib/telepathy-glib.h>
-
-G_BEGIN_DECLS
-
-#define TPL_TYPE_CHANNEL (_tpl_channel_get_type ())
-#define TPL_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TPL_TYPE_CHANNEL, TplChannel))
-#define TPL_IS_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TPL_TYPE_CHANNEL))
-#define TPL_CHANNEL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TPL_TYPE_CHANNEL, TplChannelInterface))
-
-typedef struct _TplChannel TplChannel;
-typedef struct _TplChannelInterface TplChannelInterface;
-
-struct _TplChannelInterface
-{
- GTypeInterface g_iface;
-
- void (*prepare_async) (TplChannel *self,
- GAsyncReadyCallback cb,
- gpointer user_data);
- gboolean (*prepare_finish) (TplChannel *self,
- GAsyncResult *result,
- GError **error);
-};
-
-GType _tpl_channel_get_type (void) G_GNUC_CONST;
-
-void _tpl_channel_prepare_async (TplChannel *self,
- GAsyncReadyCallback cb,
- gpointer user_data);
-
-gboolean _tpl_channel_prepare_finish (TplChannel *self,
- GAsyncResult *result,
- GError **error);
-G_END_DECLS
-#endif // __TPL_CHANNEL_H__
diff --git a/telepathy-logger/channel.c b/telepathy-logger/channel.c
deleted file mode 100644
index 93e84da..0000000
--- a/telepathy-logger/channel.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (C) 2009-2011 Collabora Ltd.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Authors: Cosimo Alfarano <cosimo.alfarano at collabora.co.uk>
- * Nicolas Dufresne <nicolas.dufresne at collabora.co.uk>
- */
-
-#include "config.h"
-#include "channel-internal.h"
-
-#include <glib.h>
-
-G_DEFINE_INTERFACE (TplChannel, _tpl_channel, TP_TYPE_CHANNEL)
-
-
-static void
-_tpl_channel_default_init (TplChannelInterface *iface)
-{
-}
-
-
-/**
- * tpl_channel_prepare_async:
- * @self: a TplChannel instance
- * @cb: a callback
- * @user_data: user's data passed to the callback
- *
- * The TplObserver has no idea of what TplChannel subclass instance it's
- * dealing with.
- * In order to prepare the subclass instance this method has to
- * be called, which will call #TplChannelClass.prepare_async
- * virtual method, implemented (mandatory) by #TplChannel subclasses.
- */
-void
-_tpl_channel_prepare_async (TplChannel *self,
- GAsyncReadyCallback cb,
- gpointer user_data)
-{
- g_return_if_fail (TPL_IS_CHANNEL (self));
- g_return_if_fail (TPL_CHANNEL_GET_IFACE (self)->prepare_async != NULL);
-
- TPL_CHANNEL_GET_IFACE (self)->prepare_async (self, cb, user_data);
-}
-
-
-gboolean
-_tpl_channel_prepare_finish (TplChannel *self,
- GAsyncResult *result,
- GError **error)
-{
- g_return_val_if_fail (TPL_IS_CHANNEL (self), FALSE);
- g_return_val_if_fail (TPL_CHANNEL_GET_IFACE (self)->prepare_finish != NULL,
- FALSE);
-
- return TPL_CHANNEL_GET_IFACE (self)->prepare_finish (self, result, error);
-}
More information about the telepathy-commits
mailing list