[gnome-shell/origin/wip/swarm: 1/5] Search: cleanup unused code
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/origin/wip/swarm: 1/5] Search: cleanup unused code
- Date: Wed, 25 Jun 2014 11:34:35 +0000 (UTC)
commit 570952003c635c053a8d152d57f7ec7fca7c6e06
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Wed Jun 25 11:23:18 2014 +0200
Search: cleanup unused code
js/ui/search.js | 30 ++----------------------------
1 files changed, 2 insertions(+), 28 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 3797b74..1639ac1 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -231,24 +231,10 @@ const GridSearchResult = new Lang.Class({
this.actor.style_class = 'grid-search-result';
let content = provider.createResultObject(metaInfo);
- let dragSource = null;
-
- if (content == null) {
- let actor = new St.Bin();
- let icon = new IconGrid.BaseIcon(this.metaInfo['name'],
- { createIcon: this.metaInfo['createIcon'] });
- actor.set_child(icon.actor);
- actor.label_actor = icon.label;
- dragSource = icon.icon;
- content = { actor: actor, icon: icon };
- } else {
- if (content._delegate && content._delegate.getDragActorSource)
- dragSource = content._delegate.getDragActorSource();
- }
+ log("content " + content);
+ this._dragActorSource = content;
this.actor.set_child(content.actor);
- this.actor.label_actor = content.actor.label_actor;
- this.icon = content.icon;
let draggable = DND.makeDraggable(this.actor);
draggable.connect('drag-begin',
@@ -263,11 +249,6 @@ const GridSearchResult = new Lang.Class({
Lang.bind(this, function() {
Main.overview.endItemDrag(this);
}));
-
- if (!dragSource)
- // not exactly right, but alignment problems are hard to notice
- dragSource = content;
- this._dragActorSource = dragSource;
},
getDragActorSource: function() {
@@ -276,13 +257,6 @@ const GridSearchResult = new Lang.Class({
getDragActor: function() {
return this.metaInfo['createIcon'](Main.overview.dashIconSize);
- },
-
- shellWorkspaceLaunch: function(params) {
- if (this.provider.dragActivateResult)
- this.provider.dragActivateResult(this.metaInfo.id, params);
- else
- this.provider.activateResult(this.metaInfo.id, this.terms);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]