aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stdlib/text.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/stdlib/text.c b/src/stdlib/text.c
index bfaa0581..c2ee4613 100644
--- a/src/stdlib/text.c
+++ b/src/stdlib/text.c
@@ -1203,12 +1203,6 @@ static INLINE Text_t _quoted(Text_t text, bool colorize, char quote_char)
public Text_t Text$as_text(const void *vtext, bool colorize, const TypeInfo_t *info)
{
(void)info;
- if (info->TextInfo.lang && streq(info->TextInfo.lang, "Path")) {
- if (!vtext) return Text("Path");
- Text_t text = *(Text_t*)vtext;
- return Text$format("(%s%k%s)", colorize ? "\x1b[35m" : "", &text, colorize ? "\x1b[m" : "");
- }
-
if (!vtext) return info && info->TextInfo.lang ? Text$from_str(info->TextInfo.lang) : Text("Text");
Text_t text = *(Text_t*)vtext;