[gbrainy] Remove unused code



commit 9a53187294b9950e08b017d73431b545108a84b7
Author: Jordi Mas <jmas softcatala org>
Date:   Wed May 1 22:11:36 2019 +0200

    Remove unused code

 src/Games/Logic/PuzzleBalance.cs     |  2 +-
 src/Games/Logic/PuzzleClocks.cs      |  1 -
 src/Games/Logic/PuzzleGridDots.cs    |  1 -
 src/Games/Logic/PuzzleLargerShape.cs |  2 +-
 src/Games/Logic/PuzzleLargestArea.cs |  2 --
 src/Games/Logic/PuzzlePencil.cs      |  2 +-
 src/Games/Logic/PuzzlePeopleTable.cs | 13 -------------
 src/Games/Memory/MemoryCountDots.cs  |  1 -
 8 files changed, 3 insertions(+), 21 deletions(-)
---
diff --git a/src/Games/Logic/PuzzleBalance.cs b/src/Games/Logic/PuzzleBalance.cs
index 78f5cb72..ac7a3637 100644
--- a/src/Games/Logic/PuzzleBalance.cs
+++ b/src/Games/Logic/PuzzleBalance.cs
@@ -41,7 +41,7 @@ namespace gbrainy.Games.Logic
                        2,2,3,0,0,      0,0,0,0,0,
                };
 
-               private const double figure_width = 0.1, figure_height = 0.1, space_width = 0.05, 
space_height = 0;
+               private const double figure_height = 0.1, space_width = 0.05, space_height = 0;
 
                public override string Name {
                        get {return Translations.GetString ("Balance");}
diff --git a/src/Games/Logic/PuzzleClocks.cs b/src/Games/Logic/PuzzleClocks.cs
index e089ab78..cfd3ca39 100644
--- a/src/Games/Logic/PuzzleClocks.cs
+++ b/src/Games/Logic/PuzzleClocks.cs
@@ -25,7 +25,6 @@ namespace gbrainy.Games.Logic
        public class PuzzleClocks : Game
        {
                private const double figure_size = 0.3;
-               private const double radian = Math.PI / 180;
                private int addition;
                private int []handles;
                private const int clocks = 4;
diff --git a/src/Games/Logic/PuzzleGridDots.cs b/src/Games/Logic/PuzzleGridDots.cs
index 3d1a9b50..956c7f20 100644
--- a/src/Games/Logic/PuzzleGridDots.cs
+++ b/src/Games/Logic/PuzzleGridDots.cs
@@ -29,7 +29,6 @@ namespace gbrainy.Games.Logic
                const double figure_size = 0.25;
                const int lines = 6;
                const int columns = 6;
-               const int figures = 6;
                static bool X = true;
                static bool O = false;
                const double space_figures = 0.05;
diff --git a/src/Games/Logic/PuzzleLargerShape.cs b/src/Games/Logic/PuzzleLargerShape.cs
index 05f9ea7f..fda4147d 100644
--- a/src/Games/Logic/PuzzleLargerShape.cs
+++ b/src/Games/Logic/PuzzleLargerShape.cs
@@ -26,7 +26,7 @@ namespace gbrainy.Games.Logic
 {
        public class PuzzleLargerShape : Game
        {
-               private const double rect_witdh = 0.04, rect_height = 0.04, space_figures = 0.22;
+               private const double rect_witdh = 0.04, rect_height = 0.04;
                private ArrayListIndicesRandom random_indices;
                private const int answers = 4;
                private char[] quest1, quest2, answer;
diff --git a/src/Games/Logic/PuzzleLargestArea.cs b/src/Games/Logic/PuzzleLargestArea.cs
index 8e62cca4..657c9340 100644
--- a/src/Games/Logic/PuzzleLargestArea.cs
+++ b/src/Games/Logic/PuzzleLargestArea.cs
@@ -132,8 +132,6 @@ namespace gbrainy.Games.Logic
                internal abstract class Figure
                {
                        Random random = new Random ();
-                       const double figure_size = 0.3;
-                       const double margin = 0.005;
 
                        public double GetRandom (double max)
                        {
diff --git a/src/Games/Logic/PuzzlePencil.cs b/src/Games/Logic/PuzzlePencil.cs
index 5ca66801..0b9e7885 100644
--- a/src/Games/Logic/PuzzlePencil.cs
+++ b/src/Games/Logic/PuzzlePencil.cs
@@ -27,7 +27,7 @@ namespace gbrainy.Games.Logic
        public class PuzzlePencil : Game
        {
                private ArrayListIndicesRandom random_indices;
-               private const double figure_width = 0.1, figure_height = 0.1, space_width = 0.1, space_height 
= 0.15;
+               private const double figure_height = 0.1, space_width = 0.1, space_height = 0.15;
                private const double figure_size = 0.2;
                private const int figures = 5;
                private const int answer_index = 4;
diff --git a/src/Games/Logic/PuzzlePeopleTable.cs b/src/Games/Logic/PuzzlePeopleTable.cs
index 232ae077..371cab34 100644
--- a/src/Games/Logic/PuzzlePeopleTable.cs
+++ b/src/Games/Logic/PuzzlePeopleTable.cs
@@ -24,21 +24,8 @@ namespace gbrainy.Games.Logic
 {
        public class PuzzlePeopleTable : Game
        {
-               private const double figure_size = 0.15;
                private string ques1, ques2;
        
-               private class Circle
-               {       
-                       public double x;
-                       public double y;
-
-                       public Circle (double x, double y) 
-                       {
-                               this.x = x;
-                               this.y = y;
-                       }
-               }
-
                public override string Name {
                        get {return Translations.GetString ("People at a table");}
                }
diff --git a/src/Games/Memory/MemoryCountDots.cs b/src/Games/Memory/MemoryCountDots.cs
index f037aba1..a5968cfc 100644
--- a/src/Games/Memory/MemoryCountDots.cs
+++ b/src/Games/Memory/MemoryCountDots.cs
@@ -26,7 +26,6 @@ namespace gbrainy.Games.Memory
        {
                private const int NUMCOLUMNS = 7;
                private const int MINDOTS = 1;
-               private const int MAXDOTS = 25;
                private int maxdotscolor;
                private int question_color;
 


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