From 0f883d2ecf963ff0534c1216c697f61d0c900a5e Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 26 Apr 2024 23:59:11 +0200 Subject: [PATCH] Simplify code --- m-deque.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/m-deque.h b/m-deque.h index 7014b506..f5850c83 100644 --- a/m-deque.h +++ b/m-deque.h @@ -396,11 +396,7 @@ index = n->size-1; \ } \ if (ptr != NULL) \ - M_IF_METHOD(MOVE, oplist) ( \ - M_CALL_MOVE(oplist, *ptr, n->data[index]); else \ - , \ - M_CALL_SET(oplist, *ptr, n->data[index]); \ - ) \ + M_DO_MOVE(oplist, *ptr, n->data[index]); else \ M_CALL_CLEAR(oplist, n->data[index]); \ d->count --; \ d->back->index = index; \ @@ -426,11 +422,7 @@ node_t *n = d->front->node; \ size_t index = d->front->index; \ if (ptr != NULL) \ - M_IF_METHOD(MOVE, oplist) ( \ - M_CALL_MOVE(oplist, *ptr, n->data[index]); else \ - , \ - M_CALL_SET(oplist, *ptr, n->data[index]); \ - ) \ + M_DO_MOVE(oplist, *ptr, n->data[index]); else \ M_CALL_CLEAR(oplist, n->data[index]); \ index++; \ if (M_UNLIKELY (n->size <= index)) { \