searchDisplay: Remove a couple of no longer used variables

https://bugzilla.gnome.org/show_bug.cgi?id=675328
This commit is contained in:
Rui Matos 2012-05-07 17:42:05 +02:00
parent 333e380340
commit 0862d1c804

View File

@ -208,10 +208,8 @@ const SearchResults = new Lang.Class({
this._content.add(this._statusText); this._content.add(this._statusText);
this._providers = this._searchSystem.getProviders(); this._providers = this._searchSystem.getProviders();
this._providerMeta = []; this._providerMeta = [];
this._providerMetaResults = {};
for (let i = 0; i < this._providers.length; i++) { for (let i = 0; i < this._providers.length; i++) {
this.createProviderMeta(this._providers[i]); this.createProviderMeta(this._providers[i]);
this._providerMetaResults[this.providers[i].title] = [];
} }
this._searchProvidersBox = new St.BoxLayout({ style_class: 'search-providers-box' }); this._searchProvidersBox = new St.BoxLayout({ style_class: 'search-providers-box' });
this.actor.add(this._searchProvidersBox); this.actor.add(this._searchProvidersBox);
@ -301,7 +299,6 @@ const SearchResults = new Lang.Class({
}, },
_clearDisplay: function() { _clearDisplay: function() {
this._visibleResultsCount = 0;
for (let i = 0; i < this._providerMeta.length; i++) { for (let i = 0; i < this._providerMeta.length; i++) {
let meta = this._providerMeta[i]; let meta = this._providerMeta[i];
meta.resultDisplay.clear(); meta.resultDisplay.clear();
@ -380,7 +377,6 @@ const SearchResults = new Lang.Class({
this._clearDisplayForProvider(provider); this._clearDisplayForProvider(provider);
meta.resultDisplay.setResults([], []); meta.resultDisplay.setResults([], []);
} else { } else {
this._providerMetaResults[provider.title] = providerResults;
meta.resultDisplay.setResults(providerResults, terms); meta.resultDisplay.setResults(providerResults, terms);
let results = meta.resultDisplay.getResultsForDisplay(); let results = meta.resultDisplay.getResultsForDisplay();