Make internal method private
diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh
index a3e6f4d..786c08d 100644
--- a/src/hb-open-type-private.hh
+++ b/src/hb-open-type-private.hh
@@ -511,11 +511,6 @@
inline unsigned int get_size () const
{ return len.get_size () + len * Type::get_size (); }
- inline bool sanitize_shallow (SANITIZE_ARG_DEF) {
- TRACE_SANITIZE ();
- return SANITIZE_SELF() && SANITIZE_ARRAY (this, Type::get_size (), len);
- }
-
inline bool sanitize (SANITIZE_ARG_DEF) {
TRACE_SANITIZE ();
if (!likely (sanitize_shallow (SANITIZE_ARG))) return false;
@@ -561,6 +556,13 @@
return true;
}
+ private:
+ inline bool sanitize_shallow (SANITIZE_ARG_DEF) {
+ TRACE_SANITIZE ();
+ return SANITIZE_SELF() && SANITIZE_ARRAY (this, Type::get_size (), len);
+ }
+
+ public:
LenType len;
/*Type array[VAR];*/
};