summaryrefslogtreecommitdiff
path: root/python/msgpack/pack.h
diff options
context:
space:
mode:
authorNaoki INADA <inada-n@eagle>2009-06-29 08:23:49 +0900
committerNaoki INADA <inada-n@eagle>2009-06-29 08:23:49 +0900
commit257270c1ebc5bb6ac6c60e47130e2a577ffb6714 (patch)
treec22fb8a8cd3869710ca3d12ce790634161c4ab1c /python/msgpack/pack.h
parent0b33a634a668a478ee86f2c3d9d29c6be85afa6b (diff)
downloadmsgpack-python-257270c1ebc5bb6ac6c60e47130e2a577ffb6714.tar.gz
Refactor packing code.
Diffstat (limited to 'python/msgpack/pack.h')
-rw-r--r--python/msgpack/pack.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/python/msgpack/pack.h b/python/msgpack/pack.h
index 9bd6b68..cdac819 100644
--- a/python/msgpack/pack.h
+++ b/python/msgpack/pack.h
@@ -34,9 +34,6 @@ typedef struct msgpack_packer {
static inline void msgpack_packer_init(msgpack_packer* pk, void* data, msgpack_packer_write callback);
-static inline msgpack_packer* msgpack_packer_new(void* data, msgpack_packer_write callback);
-static inline void msgpack_packer_free(msgpack_packer* pk);
-
static inline int msgpack_pack_short(msgpack_packer* pk, short d);
static inline int msgpack_pack_int(msgpack_packer* pk, int d);
static inline int msgpack_pack_long(msgpack_packer* pk, long d);
@@ -90,20 +87,6 @@ static inline void msgpack_packer_init(msgpack_packer* pk, void* data, msgpack_p
pk->callback = callback;
}
-static inline msgpack_packer* msgpack_packer_new(void* data, msgpack_packer_write callback)
-{
- msgpack_packer* pk = (msgpack_packer*)calloc(1, sizeof(msgpack_packer));
- if(!pk) { return NULL; }
- msgpack_packer_init(pk, data, callback);
- return pk;
-}
-
-static inline void msgpack_packer_free(msgpack_packer* pk)
-{
- free(pk);
-}
-
-
#ifdef __cplusplus
}
#endif