From d41b1437f241f60e911b3d7d2bed18043186b91e Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 18 Nov 2015 14:02:13 +0100 Subject: [PATCH] Some further cleanup. --- evennia/utils/nested_inlinefuncs.py | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/evennia/utils/nested_inlinefuncs.py b/evennia/utils/nested_inlinefuncs.py index 7708525cde..0555fb8656 100644 --- a/evennia/utils/nested_inlinefuncs.py +++ b/evennia/utils/nested_inlinefuncs.py @@ -101,20 +101,6 @@ def crop(*args, **kwargs): return utils.crop(text, width=width, suffix=suffix) -def clr(*args, **kwargs): - """ - Colorize text. $crop{clr, text} - - """ - clr, text = "|n", "" - nargs = len(args) - if nargs > 0: - clr = args[0] - if nargs > 1: - text = args[1] - return "|" + clr.lstrip("|") + text + "|n" - - # we specify a default nomatch function to use if no matching func was # found. This will be overloaded by any nomatch function defined in # the imported modules. @@ -140,8 +126,8 @@ except AttributeError: _RE_STARTTOKEN = re.compile(r"(?.*?)(?.*?)(?.*?)(?.*?)(?(?(?(?