diff options
author | Peter Zhu <[email protected]> | 2023-05-26 13:34:26 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-05-26 13:34:26 -0400 |
commit | c37ebfe08fb43242687e58a68628ade8101973d7 (patch) | |
tree | 61fe328dea11818b11bc31ed3fa6417847dafee7 /string.c | |
parent | c6e4337a995288b6cdadd33de591edb1bb02b384 (diff) |
Remove dead code in string.c
The STR_DEC_LEN macro is not used.
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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) { |