Remove the unused BUFFER macro
authorBehdad Esfahbod <behdad@behdad.org>
Sat, 15 May 2010 01:41:04 +0000 (21:41 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 15 May 2010 01:41:04 +0000 (21:41 -0400)
src/hb-buffer-private.hh
src/hb-ot-layout-gpos-private.hh
src/hb-ot-layout-gsub-private.hh
src/hb-ot-layout-gsubgpos-private.hh

index 03cc697..fabfbd4 100644 (file)
@@ -62,7 +62,6 @@ ASSERT_STATIC (sizeof (hb_glyph_position_t) == sizeof (hb_internal_glyph_positio
 ASSERT_STATIC (sizeof (hb_glyph_info_t) == sizeof (hb_glyph_position_t));
 
 
-
 HB_INTERNAL void
 _hb_buffer_swap (hb_buffer_t *buffer);
 
@@ -150,11 +149,6 @@ struct _hb_buffer_t {
 };
 
 
-
-#ifndef BUFFER
-#define BUFFER buffer
-#endif
-
 HB_END_DECLS
 
 #endif /* HB_BUFFER_PRIVATE_H */
index 72817a0..e021b09 100644 (file)
 #include "hb-ot-layout-gsubgpos-private.hh"
 
 
-#undef BUFFER
-#define BUFFER c->buffer
-
-
 #define HB_OT_LAYOUT_GPOS_NO_LAST ((unsigned int) -1)
 
 /* Shared Tables: ValueRecord, Anchor Table, and MarkArray */
@@ -1531,8 +1527,6 @@ struct PosLookup : Lookup
                             hb_buffer_t *buffer,
                             hb_mask_t    mask) const
   {
-#undef BUFFER
-#define BUFFER buffer
     bool ret = false;
 
     if (unlikely (!buffer->in_length))
index 75ce90e..59c498e 100644 (file)
 #include "hb-ot-layout-gsubgpos-private.hh"
 
 
-#undef BUFFER
-#define BUFFER c->buffer
-
-
 struct SingleSubstFormat1
 {
   friend struct SingleSubst;
@@ -822,8 +818,6 @@ struct SubstLookup : Lookup
                            hb_buffer_t *buffer,
                            hb_mask_t    mask) const
   {
-#undef BUFFER
-#define BUFFER buffer
     bool ret = false;
 
     if (unlikely (!buffer->in_length))
index 4957bfb..f11080e 100644 (file)
@@ -52,11 +52,6 @@ struct hb_apply_context_t
 
 
 
-
-#undef BUFFER
-#define BUFFER c->buffer
-
-
 typedef bool (*match_func_t) (hb_codepoint_t glyph_id, const USHORT &value, const void *data);
 typedef bool (*apply_lookup_func_t) (hb_apply_context_t *c, unsigned int lookup_index);