[gnome-documents] sources: code cleanups



commit 70902c7f82c7ff928af6c359ddf614ee8b65422c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Aug 25 17:13:12 2011 -0400

    sources: code cleanups

 src/sources.js |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/sources.js b/src/sources.js
index 20c121e..6830222 100644
--- a/src/sources.js
+++ b/src/sources.js
@@ -210,9 +210,7 @@ function SourceModel() {
 SourceModel.prototype = {
     _init: function() {
         this.model = Gd.create_sources_store();
-
         this._sourceManager = Global.sourceManager;
-        this.model.clear();
 
         let iter = this.model.append();
         Gd.sources_store_set(this.model, iter,
@@ -251,7 +249,6 @@ SourceView.prototype = {
             function(view, path) {
                 let iter = this._model.model.get_iter(path)[1];
                 let id = this._model.model.get_value(iter, SourceModelColumns.ID);
-                let name = this._model.model.get_value(iter, SourceModelColumns.NAME);
 
                 this._sourceManager.setActiveSourceId(id);
             }));



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