From: Vincent Danno Date: Thu, 20 May 2021 12:36:33 +0000 (+0200) Subject: Delete dead code X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F50%2F72550%2F2;p=functest-xtesting.git Delete dead code The piece of code became unused following change https://gerrit.opnfv.org/gerrit/c/functest/+/39443 Signed-off-by: Vincent Danno Change-Id: I0bf80790c05cef217be574ad196d8c4e8dfb4c2d --- diff --git a/xtesting/ci/tier_handler.py b/xtesting/ci/tier_handler.py index 6f78f202..86f1374f 100644 --- a/xtesting/ci/tier_handler.py +++ b/xtesting/ci/tier_handler.py @@ -16,24 +16,6 @@ import textwrap import prettytable -LINE_LENGTH = 72 - - -def split_text(text, max_len): - words = text.split() - lines = [] - line = "" - for word in words: - if len(line) + len(word) < max_len - 1: - line += word + " " - else: - lines.append(line) - line = word + " " - if line != "": - lines.append(line) - return lines - - class Tier(): def __init__(self, name, description=""): diff --git a/xtesting/tests/unit/ci/test_tier_handler.py b/xtesting/tests/unit/ci/test_tier_handler.py index 5ee62c4f..668f33cc 100644 --- a/xtesting/tests/unit/ci/test_tier_handler.py +++ b/xtesting/tests/unit/ci/test_tier_handler.py @@ -29,11 +29,6 @@ class TierHandlerTesting(unittest.TestCase): self.testcase.str = self.testcase.__str__() self.tier.str = self.tier.__str__() - def test_split_text(self): - test_str = 'this is for testing' - self.assertEqual(tier_handler.split_text(test_str, 10), - ['this is ', 'for ', 'testing ']) - def test_add_test(self): self.tier.add_test(self.test) self.assertEqual(self.tier.tests_array, [self.test])