[gnome-shell] search: Remove createResultContainer() hook



commit 59246babea450635dde14b39be1492ff61e029c6
Author: Florian MÃllner <fmuellner gnome org>
Date:   Mon Jun 11 15:19:56 2012 +0200

    search: Remove createResultContainer() hook
    
    It is now unused since the contacts search provider was the only
    consumer, so remove it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677442

 js/ui/search.js        |   13 -------------
 js/ui/searchDisplay.js |    5 +----
 2 files changed, 1 insertions(+), 17 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index df5e192..447a439 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -142,19 +142,6 @@ const SearchProvider = new Lang.Class({
     },
 
     /**
-     * createResultContainer:
-     *
-     * Search providers may optionally override this to render their
-     * results in a custom fashion.  The default implementation
-     * will create a vertical list.
-     *
-     * Returns: An instance of SearchResultDisplay.
-     */
-    createResultContainerActor: function() {
-        return null;
-    },
-
-    /**
      * createResultActor:
      * @resultMeta: Object with result metadata
      * @terms: Array of search terms, should be used for highlighting
diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js
index 9ca5198..508751e 100644
--- a/js/ui/searchDisplay.js
+++ b/js/ui/searchDisplay.js
@@ -275,10 +275,7 @@ const SearchResults = new Lang.Class({
                                             x_fill: true,
                                             y_fill: true });
         providerBox.add(resultDisplayBin, { expand: true });
-        let resultDisplay = provider.createResultContainerActor();
-        if (resultDisplay == null) {
-            resultDisplay = new GridSearchResults(provider);
-        }
+        let resultDisplay = new GridSearchResults(provider);
         resultDisplayBin.set_child(resultDisplay.actor);
 
         this._providerMeta.push({ provider: provider,



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