[four-in-a-row: 70/72] removed commented code



commit e0e995fbb846d3945719b4ecfcf3ce3ed12d46b2
Author: Jacob Humphrey <jacob ryan humphrey gmail com>
Date:   Sat Dec 15 22:06:40 2018 -0600

    removed commented code

 src/four-in-a-row.vala |  4 ----
 src/main.vala          |  6 ------
 src/prefs.vala         |  4 +---
 src/scorebox.vala      | 14 --------------
 4 files changed, 1 insertion(+), 27 deletions(-)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index 4016710..1b7bb87 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -216,10 +216,6 @@ class FourInARow : Gtk.Application {
         }
     }
 
-    // protected override void startup() {
-    //     create_app(this);
-    // }
-
     public void prompt_player() {
         int players = Prefs.instance.get_n_human_players();
         bool human = is_player_human();
diff --git a/src/main.vala b/src/main.vala
index 0457ed3..4380e05 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -57,12 +57,6 @@ public enum Tile {
     PLAYER2_CURSOR,
 }
 
-public enum Move {
-    LEFT,
-    RIGHT,
-    //DROP
-}
-
 public enum SoundID {
     DROP,
     I_WIN,
diff --git a/src/prefs.vala b/src/prefs.vala
index 8706dda..a7deeef 100644
--- a/src/prefs.vala
+++ b/src/prefs.vala
@@ -80,9 +80,7 @@ class Prefs : Object {
         if (key == "theme-id") {
             int val = sane_theme_id(settings.get_int("theme-id"));
             if (val != theme_id) {
-                 theme_id = val;
-                //if (!GameBoardView.instance.change_theme())
-                    //return;
+                theme_id = val;
                 theme_changed(theme_id);
             }
         }
diff --git a/src/scorebox.vala b/src/scorebox.vala
index 8a9c085..a367e4a 100644
--- a/src/scorebox.vala
+++ b/src/scorebox.vala
@@ -24,21 +24,8 @@ class Scorebox : Gtk.Dialog {
     Gtk.Label label_score[3];
     public new FourInARow application;
 
-    // static Once<Scorebox> _instance;
-    // public static Scorebox insstance {
-    //     get {
-    //         return _instance.once(() => {
-    //             var scorebox = new Scorebox();
-                //scorebox.show_all();
-                //scorebox.update();
-    //             return scorebox;
-    //         });
-    //     }
-    // }
-
     public Scorebox(Gtk.Window parent, FourInARow application) {
         Object(title: _("Scores"),
-               //parent: window,
                use_header_bar: 1,
                destroy_with_parent: true,
                resizable: false,
@@ -126,7 +113,6 @@ class Scorebox : Gtk.Dialog {
         application.score[PlayerID.PLAYER1] = 0;
         application.score[PlayerID.PLAYER2] = 0;
         application.score[PlayerID.NOBODY] = 0;
-        //update();
     }
 
     public override bool delete_event(Gdk.EventAny event) {


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