From 2c6cc6f0474f3d36704569a6698795aae39f4602 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 Jan 2020 11:22:22 +0530 Subject: [PATCH] Remove unused slot --- kitty/layout.py | 5 ----- kitty/window.py | 1 - 2 files changed, 6 deletions(-) diff --git a/kitty/layout.py b/kitty/layout.py index cf8c8f996..1d8942f79 100644 --- a/kitty/layout.py +++ b/kitty/layout.py @@ -162,7 +162,6 @@ class Layout: # {{{ name = None needs_window_borders = True only_active_window_visible = False - layout_data_class = None def __init__(self, os_window_id, tab_id, margin_width, single_window_margin_width, padding_width, border_width, layout_opts=''): self.os_window_id = os_window_id @@ -406,10 +405,6 @@ def bottom_blank_rect(self, window): self.blank_rects.append(Rect(window.geometry.left, window.geometry.bottom, window.geometry.right, central.bottom + 1)) # }}} - def layout_data_for_window(self, w): - if self.layout_data_class is not None and isinstance(w.layout_data, self.layout_data_class): - return w.layout_data - def do_layout(self, windows, active_window_idx): raise NotImplementedError() diff --git a/kitty/window.py b/kitty/window.py index e598f5bec..b680e86d7 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -135,7 +135,6 @@ class Window: def __init__(self, tab, child, opts, args, override_title=None, copy_colors_from=None): self.action_on_close = self.action_on_removal = None - self.layout_data = None self.current_marker_spec = None self.pty_resized_once = False self.needs_attention = False