[Spice-devel] spiceqxl: Remove an unused macro

Francois Gouget fgouget at codeweavers.com
Fri Oct 28 14:50:18 UTC 2016


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 src/spiceqxl_io_port.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c
index 165b8a9..6721d3f 100644
--- a/src/spiceqxl_io_port.c
+++ b/src/spiceqxl_io_port.c
@@ -44,17 +44,6 @@
         ret = &m_item->el;                                              \
     }
 
-#undef SPICE_RING_CONS_ITEM
-#define SPICE_RING_CONS_ITEM(r, ret) {                                  \
-        typeof(r) start = r;                                            \
-        typeof(r) end = r + 1;                                          \
-        uint32_t cons = (r)->cons & SPICE_RING_INDEX_MASK(r);           \
-        typeof(&(r)->items[cons]) m_item = &(r)->items[cons];           \
-        if (!((uint8_t*)m_item >= (uint8_t*)(start) && (uint8_t*)(m_item + 1) <= (uint8_t*)(end))) { \
-            abort();                                                    \
-        }                                                               \
-        ret = &m_item->el;                                              \
-    }
 
 static int spiceqxl_io_port_debug_level = -1;
 
-- 
2.9.3


More information about the Spice-devel mailing list