[virt-tools-list] [PATCH 5/5] Remove useless {get, set}_property functions

Fabiano Fidêncio fidencio at redhat.com
Mon Nov 2 06:22:37 UTC 2015


On Thu, Oct 29, 2015 at 9:40 PM, Eduardo Lima (Etrunko)
<etrunko at redhat.com> wrote:
> Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
> ---
>  src/virt-viewer.c | 22 ----------------------
>  1 file changed, 22 deletions(-)
>
> diff --git a/src/virt-viewer.c b/src/virt-viewer.c
> index dd8dbba..10f624d 100644
> --- a/src/virt-viewer.c
> +++ b/src/virt-viewer.c
> @@ -74,26 +74,6 @@ static void virt_viewer_dispose (GObject *object);
>  static int virt_viewer_connect(VirtViewerApp *app, GError **error);
>
>  static void
> -virt_viewer_get_property (GObject *object, guint property_id,
> -                          GValue *value G_GNUC_UNUSED, GParamSpec *pspec)
> -{
> -    switch (property_id) {
> -    default:
> -        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
> -    }
> -}
> -
> -static void
> -virt_viewer_set_property (GObject *object, guint property_id,
> -                          const GValue *value G_GNUC_UNUSED, GParamSpec *pspec)
> -{
> -    switch (property_id) {
> -    default:
> -        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
> -    }
> -}
> -
> -static void
>  virt_viewer_class_init (VirtViewerClass *klass)
>  {
>      GObjectClass *object_class = G_OBJECT_CLASS (klass);
> @@ -101,8 +81,6 @@ virt_viewer_class_init (VirtViewerClass *klass)
>
>      g_type_class_add_private (klass, sizeof (VirtViewerPrivate));
>
> -    object_class->get_property = virt_viewer_get_property;
> -    object_class->set_property = virt_viewer_set_property;
>      object_class->dispose = virt_viewer_dispose;
>
>      app_class->initial_connect = virt_viewer_initial_connect;
> --
> 2.4.3
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list

ack!




More information about the virt-tools-list mailing list