aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-05-26 13:34:26 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-05-26 13:34:26 -0400
commitc37ebfe08fb43242687e58a68628ade8101973d7 (patch)
tree61fe328dea11818b11bc31ed3fa6417847dafee7
parentc6e4337a995288b6cdadd33de591edb1bb02b384 (diff)
downloadruby-c37ebfe08fb43242687e58a68628ade8101973d7.tar.gz
Remove dead code in string.c
The STR_DEC_LEN macro is not used.
-rw-r--r--string.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/string.c b/string.c
index f3b1406665..df1464fb70 100644
--- a/string.c
+++ b/string.c
@@ -125,17 +125,6 @@ VALUE rb_cSymbol;
}\
} while (0)
-#define STR_DEC_LEN(str) do {\
- if (STR_EMBED_P(str)) {\
- long n = RSTRING_LEN(str);\
- n--;\
- STR_SET_EMBED_LEN((str), n);\
- }\
- else {\
- RSTRING(str)->as.heap.len--;\
- }\
-} while (0)
-
static inline bool
str_enc_fastpath(VALUE str)
{