aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-27 14:12:35 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-27 14:12:35 -0400
commit2186e84de0c0fd47ba48eaa35f74ea2754c3b81f (patch)
tree97f5a8dd78609922920ffc310e9688eeb6e53c7f
parent67c22014e751b448aeefb8e62b4fa5e0137d40d1 (diff)
Remove dead code for paths
-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;