@@ -161,46 +161,6 @@ ibuf_alloc_cb(void *ctx, size_t size)
161
161
162
162
#if defined(__cplusplus )
163
163
} /* 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
-
204
164
#endif /* defined(__cplusplus) */
205
165
206
166
#endif /* TARANTOOL_SMALL_IBUF_H_INCLUDED */
0 commit comments