Remove dead code in string.c
The STR_DEC_LEN macro is not used.
This commit is contained in:
parent
c6e4337a99
commit
c37ebfe08f
11
string.c
11
string.c
@ -125,17 +125,6 @@ VALUE rb_cSymbol;
|
|||||||
}\
|
}\
|
||||||
} while (0)
|
} 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
|
static inline bool
|
||||||
str_enc_fastpath(VALUE str)
|
str_enc_fastpath(VALUE str)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user