[caribou] Remove redundant get_keys() from subclasses.



commit 8bd157c10cb64f3cdc9ac225998e3d3eee5b1ee2
Author: Eitan Isaacson <eitan monotonous org>
Date:   Thu Jun 2 09:53:27 2011 -0700

    Remove redundant get_keys() from subclasses.

 libcaribou/level-model.vala |   12 ------------
 libcaribou/row-model.vala   |   11 -----------
 2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/libcaribou/level-model.vala b/libcaribou/level-model.vala
index dc6917e..0d209d3 100644
--- a/libcaribou/level-model.vala
+++ b/libcaribou/level-model.vala
@@ -42,18 +42,6 @@ namespace Caribou {
             key_activated (key);
         }
 
-        public KeyModel[] get_keys () {
-            Gee.ArrayList<KeyModel> keys = new Gee.ArrayList<KeyModel> ();
-            foreach (RowModel row in rows) {
-                KeyModel[] row_keys = row.get_keys();
-                foreach (KeyModel key in row_keys) {
-                    keys.add(key);
-                }
-            }
-
-            return (KeyModel[]) keys.to_array ();
-        }
-
         public override IScannableItem[] get_scan_children () {
             if (scan_grouping == ScanGrouping.LINEAR)
                 return (IScannableItem[]) get_keys ();
diff --git a/libcaribou/row-model.vala b/libcaribou/row-model.vala
index c7f0e8f..7aac08e 100644
--- a/libcaribou/row-model.vala
+++ b/libcaribou/row-model.vala
@@ -27,17 +27,6 @@ namespace Caribou {
             column.add_key (key);
         }
 
-        public KeyModel[] get_keys () {
-            Gee.ArrayList<KeyModel> keys = new Gee.ArrayList<KeyModel> ();
-            foreach (ColumnModel column in columns) {
-                KeyModel[] col_keys = column.get_keys();
-                foreach (KeyModel key in col_keys) {
-                    keys.add(key);
-                }
-            }
-            return (KeyModel[]) keys.to_array ();
-        }
-
         public ColumnModel[] get_columns () {
             return (ColumnModel[]) columns.to_array ();
         }



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