From 297e37fdf2e7e61638e879779632b52e68183b54 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 23 Sep 2014 22:08:05 +0200 Subject: [PATCH] Remove legacy instance= parameter support. --- qutebrowser/commands/command.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/qutebrowser/commands/command.py b/qutebrowser/commands/command.py index 4a13e97bd..825a5b9f0 100644 --- a/qutebrowser/commands/command.py +++ b/qutebrowser/commands/command.py @@ -22,7 +22,6 @@ import inspect import collections -from PyQt5.QtCore import QCoreApplication from PyQt5.QtWebKit import QWebSettings from qutebrowser.commands import cmdexc, argparser @@ -299,15 +298,7 @@ class Command: args: The positional argument list. Gets modified directly. """ assert param.kind == inspect.Parameter.POSITIONAL_OR_KEYWORD - app = QCoreApplication.instance() - if self.instance == '': - obj = app - elif self.instance in app.registry: - # Use object registry where available - obj = app.registry[self.instance] - else: - # FIXME remove this - obj = utils.dotted_getattr(app, self.instance) + obj = utils.get_object(self.instance) args.append(obj) def _get_count_arg(self, param, args, kwargs):