From a2a18a52df4fc10ad453eba7cdfbe2d02a026f0b Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 2 Sep 2022 22:09:24 +0200 Subject: Removed cstack_X_push_back(), cstack_X_emplace_back(), cstack_X_pop_back(). Added a simple c_erase_if(). Removed deprecated c_apply() macro. --- include/stc/cstack.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include/stc/cstack.h') diff --git a/include/stc/cstack.h b/include/stc/cstack.h index 9ed2beda..921e6618 100644 --- a/include/stc/cstack.h +++ b/include/stc/cstack.h @@ -133,13 +133,9 @@ STC_INLINE _cx_value* _cx_memb(_push)(_cx_self* self, _cx_value val) { _cx_value* vp = self->data + self->size++; *vp = val; return vp; } -STC_INLINE _cx_value* _cx_memb(_push_back)(_cx_self* self, _cx_value val) - { return _cx_memb(_push)(self, val); } STC_INLINE void _cx_memb(_pop)(_cx_self* self) { _cx_value* p = &self->data[--self->size]; i_keydrop(p); } -STC_INLINE void _cx_memb(_pop_back)(_cx_self* self) - { _cx_memb(_pop)(self); } STC_INLINE const _cx_value* _cx_memb(_at)(const _cx_self* self, size_t idx) { assert(idx < self->size); return self->data + idx; } @@ -149,8 +145,6 @@ STC_INLINE _cx_value* _cx_memb(_at_mut)(_cx_self* self, size_t idx) #if !defined _i_no_emplace STC_INLINE _cx_value* _cx_memb(_emplace)(_cx_self* self, _cx_raw raw) { return _cx_memb(_push)(self, i_keyfrom(raw)); } -STC_INLINE _cx_value* _cx_memb(_emplace_back)(_cx_self* self, _cx_raw raw) - { return _cx_memb(_push)(self, i_keyfrom(raw)); } #endif // !_i_no_emplace #if !defined _i_no_clone -- cgit v1.2.3