From 17429c4257f92fbfeb0f102f4ac4771dc97157d1 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 3 Nov 2025 15:56:45 -0500 Subject: [PATCH] Clean up obsolete code --- netbox/netbox/ui/layout.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/netbox/netbox/ui/layout.py b/netbox/netbox/ui/layout.py index 1ff362e32..a314a597b 100644 --- a/netbox/netbox/ui/layout.py +++ b/netbox/netbox/ui/layout.py @@ -15,12 +15,8 @@ class Layout: raise TypeError(f"Row {i} must be a Row instance, not {type(row)}.") self.rows = rows - def render(self, context): - return ''.join([row.render(context) for row in self.rows]) - class Row: - template_name = 'ui/layout/row.html' def __init__(self, *columns): for i, column in enumerate(columns): @@ -28,9 +24,6 @@ class Row: raise TypeError(f"Column {i} must be a Column instance, not {type(column)}.") self.columns = columns - def render(self, context): - return ''.join([column.render(context) for column in self.columns]) - class Column: @@ -39,6 +32,3 @@ class Column: if not isinstance(panel, Panel): raise TypeError(f"Panel {i} must be an instance of a Panel, not {type(panel)}.") self.panels = panels - - def render(self, context): - return ''.join([panel.render(context) for panel in self.panels])