mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
perl: oops. this doens't needed.
This commit is contained in:
parent
b140b27b9a
commit
b0062a7f6f
1 changed files with 0 additions and 3 deletions
|
|
@ -71,7 +71,6 @@ static void _msgpack_pack_sv(enc_t *enc, SV* val) {
|
|||
case SVt_PVNV:
|
||||
{
|
||||
STRLEN len = 0;
|
||||
need(enc, 1);
|
||||
char *pv = SvPV(val, len);
|
||||
if (len == 1 && *pv == '1') {
|
||||
msgpack_pack_true(enc);
|
||||
|
|
@ -98,7 +97,6 @@ static void _msgpack_pack_sv(enc_t *enc, SV* val) {
|
|||
AV* ary = (AV*)val;
|
||||
int len = av_len(ary) + 1;
|
||||
int i;
|
||||
need(enc, 1);
|
||||
msgpack_pack_array(enc, len);
|
||||
for (i=0; i<len; i++) {
|
||||
SV** svp = av_fetch(ary, i, 0);
|
||||
|
|
@ -116,7 +114,6 @@ static void _msgpack_pack_sv(enc_t *enc, SV* val) {
|
|||
int count = hv_iterinit(hval);
|
||||
HE* he;
|
||||
|
||||
need(enc, 1);
|
||||
msgpack_pack_map(enc, count);
|
||||
|
||||
while (he = hv_iternext(hval)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue