Skip to content

Commit c3991e7

Browse files
committed
ibuf: drop unused C++ code
Part of #59
1 parent a68a35e commit c3991e7

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

third_party/memcached_ibuf.h

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -161,46 +161,6 @@ ibuf_alloc_cb(void *ctx, size_t size)
161161

162162
#if defined(__cplusplus)
163163
} /* extern "C" */
164-
165-
#include "exception.h"
166-
167-
/** Reserve space for sz bytes in the input buffer. */
168-
static inline void *
169-
ibuf_reserve_xc(struct ibuf *ibuf, size_t size)
170-
{
171-
void *ptr = ibuf_reserve(ibuf, size);
172-
if (ptr == NULL)
173-
tnt_raise(OutOfMemory, size, "ibuf", "reserve");
174-
return ptr;
175-
}
176-
177-
static inline void *
178-
ibuf_alloc_xc(struct ibuf *ibuf, size_t size)
179-
{
180-
void *ptr = ibuf_alloc(ibuf, size);
181-
if (ptr == NULL)
182-
tnt_raise(OutOfMemory, size, "ibuf", "alloc");
183-
return ptr;
184-
}
185-
186-
static inline void *
187-
ibuf_reserve_xc_cb(void *ctx, size_t *size)
188-
{
189-
void *ptr = ibuf_reserve_cb(ctx, size);
190-
if (ptr == NULL)
191-
tnt_raise(OutOfMemory, *size, "ibuf", "reserve");
192-
return ptr;
193-
}
194-
195-
static inline void *
196-
ibuf_alloc_xc_cb(void *ctx, size_t size)
197-
{
198-
void *ptr = ibuf_alloc_cb(ctx, size);
199-
if (ptr == NULL)
200-
tnt_raise(OutOfMemory, size, "ibuf", "alloc");
201-
return ptr;
202-
}
203-
204164
#endif /* defined(__cplusplus) */
205165

206166
#endif /* TARANTOOL_SMALL_IBUF_H_INCLUDED */

0 commit comments

Comments
 (0)