Module: check_mk
Branch: master
Commit: 58a39ef5897b2de0a6ea73e5bbcf0d67e885d732
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=58a39ef5897b2d…
Author: Roland Halbig <rh(a)mathias-kettner.de>
Date: Tue Mar 7 17:51:27 2017 +0100
Refactoring table: removed unused odd even.
Change-Id: Id82874844119360c03f5a6b3f843beafa5e85bf0
---
web/htdocs/table.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index 31398c4..dd596f2 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -331,7 +331,6 @@ class Table(object):
html.end_form()
html.close_tr()
- odd = "even"
for nr, (row, css, state, fixed) in enumerate(rows):
# Intermediate header
if state == "header":
@@ -345,11 +344,9 @@ class Table(object):
html.close_td()
html.close_tr()
- odd = "even"
self._render_headers(actions_enabled, actions_visible)
continue
- odd = "even" if odd == "odd" else "odd"
html.open_tr(class_=["data", "odd%d" % state, css if css
else None])
for cell_content, css_classes, colspan in row:
html.open_td(class_=css_classes if css_classes else None, colspan=colspan
if colspan else None)
@@ -383,7 +380,6 @@ class Table(object):
if not omit_headers and self.rows and self.rows[0][2] != "header":
html.write(csv_separator.join([html.strip_tags(header) or "" for
(header, css, help, sortable) in headers]) + "\n")
- odd = "even"
for nr, (row, css, state, fixed) in enumerate(rows):
html.write(csv_separator.join([html.strip_tags(cell_content) for
cell_content, css_classes, colspan in row ]))
html.write("\n")