Remove SANITIZE macro
diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh
index 499754f..82c23c6 100644
--- a/src/hb-open-type-private.hh
+++ b/src/hb-open-type-private.hh
@@ -238,8 +238,6 @@
};
-#define SANITIZE(X) likely ((X).sanitize (context))
-
#define SANITIZE_SELF() likely(context->check_range (this, sizeof (*this)))
@@ -522,7 +520,7 @@
* other structs. */
unsigned int count = len;
for (unsigned int i = 0; i < count; i++)
- if (!SANITIZE (array()[i]))
+ if (array()[i].sanitize (context))
return false;
return true;
}
@@ -635,7 +633,7 @@
unsigned int count = len ? len - 1 : 0;
Type *a = array();
for (unsigned int i = 0; i < count; i++)
- if (!SANITIZE (a[i]))
+ if (!a[i].sanitize (context))
return false;
return true;
}