diff --git a/qutebrowser/app.py b/qutebrowser/app.py index df3168e88..b5358b352 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -147,9 +147,6 @@ def init(args, crash_handler): objreg.register('event-filter', event_filter) log.init.debug("Connecting signals...") - config_obj = objreg.get('config') - # FIXME:conf - # config_obj.style_changed.connect(style.get_stylesheet.cache_clear) qApp.focusChanged.connect(on_focus_changed) _process_args(args) diff --git a/qutebrowser/config/style.py b/qutebrowser/config/style.py index de0dfc429..301d6db97 100644 --- a/qutebrowser/config/style.py +++ b/qutebrowser/config/style.py @@ -27,7 +27,6 @@ from qutebrowser.config import config from qutebrowser.utils import log, jinja -@functools.lru_cache(maxsize=16) def get_stylesheet(template_str): """Format a stylesheet based on a template. @@ -59,6 +58,5 @@ def set_register_stylesheet(obj): def _update_stylesheet(obj): """Update the stylesheet for obj.""" - get_stylesheet.cache_clear() if not sip.isdeleted(obj): obj.setStyleSheet(get_stylesheet(obj.STYLESHEET)) diff --git a/qutebrowser/misc/utilcmds.py b/qutebrowser/misc/utilcmds.py index cf49264ea..d055ccf14 100644 --- a/qutebrowser/misc/utilcmds.py +++ b/qutebrowser/misc/utilcmds.py @@ -168,11 +168,7 @@ def debug_all_objects(): @cmdutils.register(debug=True) def debug_cache_stats(): """Print LRU cache stats.""" - # FIXME:conf - config_info = objreg.get('config').get.cache_info() - style_info = style.get_stylesheet.cache_info() - log.misc.debug('config: {}'.format(config_info)) - log.misc.debug('style: {}'.format(style_info)) + pass @cmdutils.register(debug=True)