[gnome-sudoku] Remove some dead code



commit 9ff45bc4b352b377c3ca1c3b09373947cd7e5552
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Dec 26 14:21:13 2020 -0600

    Remove some dead code
    
    This was added in !32. I'll ask to see what happened here.

 src/gnome-sudoku.vala | 38 --------------------------------------
 1 file changed, 38 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index bba966c8..8760e4c5 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -498,44 +498,6 @@ public class Sudoku : Gtk.Application
                                );
     }
 
-#if 0
-    // Unused?
-    private bool draw_cb ()
-    {
-        return check_layout_change ();
-    }
-
-    private bool check_layout_change ()
-    {
-        var layout = main_squeezer.visible_child;
-        if (! (layout is AspectFrame))
-            return false;
-        var changed = layout != previous_layout;
-        if (changed)
-            set_layout ((AspectFrame) layout);
-        return changed;
-    }
-
-    private void set_layout (AspectFrame new_layout)
-    {
-        if (new_layout == frame_h)
-        {
-            controls_box.halign = Align.END;
-            controls_box.orientation = Orientation.VERTICAL;
-            game_box.orientation = Orientation.HORIZONTAL;
-        }
-        else
-        {
-            controls_box.halign = Align.CENTER;
-            controls_box.orientation = Orientation.VERTICAL;
-            game_box.orientation = Orientation.VERTICAL;
-        }
-        previous_layout.remove (game_box);
-        new_layout.add (game_box);
-        previous_layout = new_layout;
-    }
-#endif
-
     public static int main (string[] args)
     {
         return new Sudoku ().run (args);


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