[gnome-terminal/gsettings] Remove dead code



commit 0991dee91b33602703ad8df22f20addcf6254acb
Author: Christian Persch <chpe gnome org>
Date:   Fri Aug 12 21:52:10 2011 +0200

    Remove dead code

 src/terminal-screen.c |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 3822b12..d02b7f5 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -266,20 +266,6 @@ terminal_screen_get_window (TerminalScreen *screen)
   return TERMINAL_WINDOW (toplevel);
 }
 
-#if 0
-static gboolean
-window_uses_argb_visual (TerminalScreen *screen)
-{
-  TerminalWindow *window;
-
-  window = terminal_screen_get_window (screen);
-  if (window == NULL || !gtk_widget_get_realized (GTK_WIDGET (window)))
-    return FALSE;
-
-  return terminal_window_uses_argb_visual (window);
-}
-#endif
-
 static void
 terminal_screen_realize (GtkWidget *widget)
 {
@@ -287,17 +273,6 @@ terminal_screen_realize (GtkWidget *widget)
 
   GTK_WIDGET_CLASS (terminal_screen_parent_class)->realize (widget);
 
-#if 0
-  TerminalScreenPrivate *priv = screen->priv;
-  TerminalBackgroundType bg_type;
-
-  /* FIXME: Don't enable this if we have a compmgr. */
-  bg_type = g_settings_get_enum (priv->profile, TERMINAL_PROFILE_BACKGROUND_TYPE_KEY);
-  vte_terminal_set_background_transparent (VTE_TERMINAL (screen),
-                                           bg_type == TERMINAL_BACKGROUND_TRANSPARENT &&
-                                           !window_uses_argb_visual (screen));
-#endif
-
   terminal_screen_set_font (screen);
 }
 



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