Skip to content

Commit

Permalink
Remove unused static url caller
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Sep 14, 2017
1 parent 6131db8 commit 769e4f7
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions lib/galaxy/visualization/plugins/registry.py
Expand Up @@ -152,30 +152,6 @@ def _find_plugins(self):
if self._is_plugin(plugin_path):
yield plugin_path

def _set_up_static_plugin(self, plugin):
"""
Decorate the plugin with paths and urls needed to serve static content.
Plugin bunches are decorated with:
* serves_static : whether this plugin will serve static content
If the plugin path contains a 'static' sub-dir, the following are added:
* static_path : the filesystem path to the static content
* static_url : the url to use when serving static content
:type plugin: ``util.bunch.Bunch``
:param plugin: the plugin to decorate
:rtype: ``util.bunch.Bunch``
:returns: the loaded plugin object
"""
plugin['serves_static'] = False
static_path = os.path.join(plugin.path, 'static')
if self.serves_static and os.path.isdir(static_path):
plugin.serves_static = True
plugin['static_path'] = static_path
plugin['static_url'] = '/'.join([plugin.base_url, 'static'])
return plugin

def _set_up_template_plugin(self, plugin):
"""
Decorate the plugin with paths needed to fill templates.
Expand Down

0 comments on commit 769e4f7

Please sign in to comment.