summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-01-19 08:38:21 -0500
committerRay Strode <rstrode@redhat.com>2015-02-10 23:23:27 -0500
commitcdce9829ac710828cb13cdd16284a46484c58f0b (patch)
tree4644aaf92d3c18fc8ec76ff076109ea54ce27c9b
parente840a32e493fc48c006e4a2197ad3ef34551260c (diff)
downloadgdm-cdce9829ac710828cb13cdd16284a46484c58f0b.tar.gz
xdmcp-display: drop extraneous code
This commit is like the previous commit but for xdmcp displays instead of transient displays. We set up vfuncs that just call into the default implementation. This commit strips it.
-rw-r--r--daemon/gdm-xdmcp-display.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/daemon/gdm-xdmcp-display.c b/daemon/gdm-xdmcp-display.c
index 41dd087f..9b929fae 100644
--- a/daemon/gdm-xdmcp-display.c
+++ b/daemon/gdm-xdmcp-display.c
@@ -61,7 +61,6 @@ enum {
static void gdm_xdmcp_display_class_init (GdmXdmcpDisplayClass *klass);
static void gdm_xdmcp_display_init (GdmXdmcpDisplay *xdmcp_display);
-static void gdm_xdmcp_display_finalize (GObject *object);
G_DEFINE_ABSTRACT_TYPE (GdmXdmcpDisplay, gdm_xdmcp_display, GDM_TYPE_DISPLAY)
@@ -81,50 +80,6 @@ gdm_xdmcp_display_get_remote_address (GdmXdmcpDisplay *display)
return display->priv->remote_address;
}
-static gboolean
-gdm_xdmcp_display_create_authority (GdmDisplay *display)
-{
- g_return_val_if_fail (GDM_IS_DISPLAY (display), FALSE);
-
- return GDM_DISPLAY_CLASS (gdm_xdmcp_display_parent_class)->create_authority (display);
-}
-
-static gboolean
-gdm_xdmcp_display_add_user_authorization (GdmDisplay *display,
- const char *username,
- char **filename,
- GError **error)
-{
- return GDM_DISPLAY_CLASS (gdm_xdmcp_display_parent_class)->add_user_authorization (display, username, filename, error);
-}
-
-static gboolean
-gdm_xdmcp_display_remove_user_authorization (GdmDisplay *display,
- const char *username,
- GError **error)
-{
- return GDM_DISPLAY_CLASS (gdm_xdmcp_display_parent_class)->remove_user_authorization (display, username, error);
-}
-
-static gboolean
-gdm_xdmcp_display_manage (GdmDisplay *display)
-{
- g_return_val_if_fail (GDM_IS_DISPLAY (display), FALSE);
-
- GDM_DISPLAY_CLASS (gdm_xdmcp_display_parent_class)->manage (display);
-
- return TRUE;
-}
-
-static gboolean
-gdm_xdmcp_display_unmanage (GdmDisplay *display)
-{
- g_return_val_if_fail (GDM_IS_DISPLAY (display), FALSE);
-
- GDM_DISPLAY_CLASS (gdm_xdmcp_display_parent_class)->unmanage (display);
- return TRUE;
-}
-
static void
_gdm_xdmcp_display_set_remote_address (GdmXdmcpDisplay *display,
GdmAddress *address)
@@ -212,13 +167,7 @@ gdm_xdmcp_display_class_init (GdmXdmcpDisplayClass *klass)
object_class->get_property = gdm_xdmcp_display_get_property;
object_class->set_property = gdm_xdmcp_display_set_property;
- object_class->finalize = gdm_xdmcp_display_finalize;
- display_class->create_authority = gdm_xdmcp_display_create_authority;
- display_class->add_user_authorization = gdm_xdmcp_display_add_user_authorization;
- display_class->remove_user_authorization = gdm_xdmcp_display_remove_user_authorization;
- display_class->manage = gdm_xdmcp_display_manage;
- display_class->unmanage = gdm_xdmcp_display_unmanage;
display_class->get_timed_login_details = gdm_xdmcp_display_get_timed_login_details;
g_type_class_add_private (klass, sizeof (GdmXdmcpDisplayPrivate));
@@ -249,18 +198,3 @@ gdm_xdmcp_display_init (GdmXdmcpDisplay *xdmcp_display)
xdmcp_display->priv = GDM_XDMCP_DISPLAY_GET_PRIVATE (xdmcp_display);
}
-
-static void
-gdm_xdmcp_display_finalize (GObject *object)
-{
- GdmXdmcpDisplay *xdmcp_display;
-
- g_return_if_fail (object != NULL);
- g_return_if_fail (GDM_IS_XDMCP_DISPLAY (object));
-
- xdmcp_display = GDM_XDMCP_DISPLAY (object);
-
- g_return_if_fail (xdmcp_display->priv != NULL);
-
- G_OBJECT_CLASS (gdm_xdmcp_display_parent_class)->finalize (object);
-}