RooTicket.vala
[gitlive] / RooTicket.vala
index 1633b76..3447ba7 100644 (file)
@@ -4,18 +4,6 @@ code to fetch ticket info...
 
 */
 
-public class RooRepo : Object 
-{
-
-       public string  id; // not really important that they are numbers..
-       public string project_id;
-       public string description;
-       public string shortname;
-       
-
-}
 
 public class RooOption : Object 
 {
@@ -58,14 +46,14 @@ public class RooTicket : Object
             _RooTicket = new RooTicket();
             _RooTicket.tickets = new Gee.ArrayList<RooTicket>();
  
-            _RooTicket.repos = new Gee.ArrayList<RooRepo>();
-            _RooTicket.loadRepos(); // initalize it..        
         }
         return _RooTicket;
     }
        public Gee.ArrayList<RooTicket> tickets; // only available for singletonn.
  
-       public Gee.ArrayList<RooRepo> repos; // only available for singletonn.          
+
        
        public Gee.ArrayList<RooOption> milestones;
        public Gee.ArrayList<RooOption> priorities;
@@ -132,18 +120,7 @@ public class RooTicket : Object
                return add;
        }
         
-       public RooRepo addRepo(Json.Object t)
-       {
-               var add = new RooRepo();
-               add.id = t.get_string_member("id");
-               add.shortname = t.get_string_member("shortname");
-               add.description = t.get_string_member("description");           
-               add.project_id = t.get_string_member("project_id");                                             
-               this.repos.add(add);
-               GLib.debug("ADD project  %s : %s : %s", add.id, add.shortname, add.project_id);
-               return add;
-       }
-