Browse Source

Clean up obsolete code

Jeremy Stretch 3 months ago
parent
commit
17429c4257
1 changed files with 0 additions and 10 deletions
  1. 0 10
      netbox/netbox/ui/layout.py

+ 0 - 10
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])