removed old code

Wed, 31 Jan 2018 15:58:38 +0200

author
Santeri Piippo
date
Wed, 31 Jan 2018 15:58:38 +0200
changeset 45
7a7c237a1717
parent 44
464f5e8d57ab
child 46
fc1a3a374f0b

removed old code

tests/quadrilaterals.py file | annotate | diff | comparison | revisions
testsuite.py file | annotate | diff | comparison | revisions
--- a/tests/quadrilaterals.py	Wed Jan 31 15:19:31 2018 +0200
+++ b/tests/quadrilaterals.py	Wed Jan 31 15:58:38 2018 +0200
@@ -58,10 +58,6 @@
                 if cross_product(b - a, c - a).length() < 1e-5:
                     yield error(element, 'collinearity-error')
 
-def hair_score(smallest_angle):
-    from math import log10
-    return max(0, -log10(smallest_angle))
-
 def hair_test(model):
     for element in model.body:
         if hasattr(element, 'geometry') and len(element.geometry.vertices) >= 3:
--- a/testsuite.py	Wed Jan 31 15:19:31 2018 +0200
+++ b/testsuite.py	Wed Jan 31 15:58:38 2018 +0200
@@ -102,22 +102,6 @@
         message = message(**problem['args'])
     return message
 
-def format_report_html(report, model, test_suite):
-    messages = []
-    for problem in report['problems']:
-        ldraw_code = model.body[problem['body-index']].textual_representation()
-        message = str.format(
-            '<li class="{problem_type}">{model_name}:{line_number}:'
-            '{problem_type}: {message}<br />{ldraw_code}</li>',
-            model_name = model.name,
-            line_number = problem['line-number'],
-            problem_type = problem['type'],
-            message = problem_text(problem, test_suite),
-            ldraw_code = ldraw_code,
-        )
-        messages.append(message)
-    return '\n'.join(messages)
-
 def format_report(report, model, test_suite):
     import colorama
     colorama.init()

mercurial