Remove old code

This commit is contained in:
Florian Bruhin 2018-11-29 19:02:36 +01:00
parent 6ccba16b72
commit c7179e35cc

View File

@ -349,13 +349,6 @@ class AbstractZoom(QObject):
config.instance.changed.connect(self._on_config_changed) config.instance.changed.connect(self._on_config_changed)
self._zoom_factor = float(config.val.zoom.default) / 100 self._zoom_factor = float(config.val.zoom.default) / 100
# # FIXME:qtwebengine is this needed?
# # For some reason, this signal doesn't get disconnected automatically
# # when the WebView is destroyed on older PyQt versions.
# # See https://github.com/qutebrowser/qutebrowser/issues/390
# self.destroyed.connect(functools.partial(
# cfg.changed.disconnect, self.init_neighborlist))
@pyqtSlot(str) @pyqtSlot(str)
def _on_config_changed(self, option: str) -> None: def _on_config_changed(self, option: str) -> None:
if option in ['zoom.levels', 'zoom.default']: if option in ['zoom.levels', 'zoom.default']: