[retro-gtk] cairo-display: Drop unused show_video() and hide_video()



commit d22012d415e098f8bd40f20e4e10bc783f5c67b7
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Oct 12 18:41:39 2017 +0200

    cairo-display: Drop unused show_video() and hide_video()

 retro-gtk/retro-cairo-display.c |   35 -----------------------------------
 retro-gtk/retro-cairo-display.h |    2 --
 2 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/retro-gtk/retro-cairo-display.c b/retro-gtk/retro-cairo-display.c
index 087dc57..630c95e 100644
--- a/retro-gtk/retro-cairo-display.c
+++ b/retro-gtk/retro-cairo-display.c
@@ -11,7 +11,6 @@ struct _RetroCairoDisplay
   GdkPixbuf *pixbuf;
   RetroVideoFilter filter;
   gfloat aspect_ratio;
-  gboolean show_surface;
   gulong on_video_output_id;
 };
 
@@ -101,9 +100,6 @@ retro_cairo_display_real_draw (GtkWidget *base,
 
   retro_cairo_display_draw_background (self, cr);
 
-  if (!self->show_surface)
-    return FALSE;
-
   if (self->pixbuf == NULL)
     return FALSE;
 
@@ -231,7 +227,6 @@ static void
 retro_cairo_display_init (RetroCairoDisplay *self)
 {
   self->filter = RETRO_VIDEO_FILTER_SMOOTH;
-  self->show_surface = TRUE;
   g_signal_connect_object (G_OBJECT (self),
                            "notify::sensitive",
                            (GCallback) queue_draw,
@@ -389,36 +384,6 @@ retro_cairo_display_get_coordinates_on_display (RetroCairoDisplay *self,
 }
 
 /**
- * retro_cairo_display_show_video:
- * @self: a #RetroCairoDisplay
- *
- * Shows the video display of the core.
- */
-void
-retro_cairo_display_show_video (RetroCairoDisplay *self)
-{
-  g_return_if_fail (self != NULL);
-
-  self->show_surface = TRUE;
-  gtk_widget_queue_draw (GTK_WIDGET (self));
-}
-
-/**
- * retro_cairo_display_hide_video:
- * @self: a #RetroCairoDisplay
- *
- * Hides the video display of the core.
- */
-void
-retro_cairo_display_hide_video (RetroCairoDisplay *self)
-{
-  g_return_if_fail (self != NULL);
-
-  self->show_surface = FALSE;
-  gtk_widget_queue_draw (GTK_WIDGET (self));
-}
-
-/**
  * retro_cairo_display_new:
  *
  * Creates a new #RetroCairoDisplay.
diff --git a/retro-gtk/retro-cairo-display.h b/retro-gtk/retro-cairo-display.h
index efa03c2..4ac507a 100644
--- a/retro-gtk/retro-cairo-display.h
+++ b/retro-gtk/retro-cairo-display.h
@@ -30,8 +30,6 @@ gboolean retro_cairo_display_get_coordinates_on_display (RetroCairoDisplay *self
                                                          gdouble            widget_y,
                                                          gdouble           *display_x,
                                                          gdouble           *display_y);
-void retro_cairo_display_show_video (RetroCairoDisplay *self);
-void retro_cairo_display_hide_video (RetroCairoDisplay *self);
 
 G_END_DECLS
 


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