Skip to content

Commit 559f3bf

Browse files
committed
remove unused code
1 parent fdf5c1c commit 559f3bf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

msgpack/_packer.pyx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ from .ext import ExtType, Timestamp
1616
cdef extern from "Python.h":
1717

1818
int PyMemoryView_Check(object obj)
19-
char* PyUnicode_AsUTF8AndSize(object obj, Py_ssize_t *l) except NULL
20-
2119

2220
cdef extern from "pack.h":
2321
struct msgpack_packer:
@@ -26,11 +24,9 @@ cdef extern from "pack.h":
2624
size_t buf_size
2725
bint use_bin_type
2826

29-
int msgpack_pack_int(msgpack_packer* pk, int d)
3027
int msgpack_pack_nil(msgpack_packer* pk)
3128
int msgpack_pack_true(msgpack_packer* pk)
3229
int msgpack_pack_false(msgpack_packer* pk)
33-
int msgpack_pack_long(msgpack_packer* pk, long d)
3430
int msgpack_pack_long_long(msgpack_packer* pk, long long d)
3531
int msgpack_pack_unsigned_long_long(msgpack_packer* pk, unsigned long long d)
3632
int msgpack_pack_float(msgpack_packer* pk, float d)
@@ -191,9 +187,6 @@ cdef class Packer(object):
191187
continue
192188
else:
193189
raise OverflowError("Integer value out of range")
194-
elif PyInt_CheckExact(o) if strict_types else PyInt_Check(o):
195-
longval = o
196-
ret = msgpack_pack_long(&self.pk, longval)
197190
elif PyFloat_CheckExact(o) if strict_types else PyFloat_Check(o):
198191
if self.use_float:
199192
fval = o

0 commit comments

Comments
 (0)