aboutsummaryrefslogtreecommitdiff
path: root/src/hb-open-type.hh
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-10-19 00:16:08 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-10-19 00:16:08 +0000
commit8bf1ec54dfd29a2c1a2890b061f754b97ec24fdf (patch)
tree9212cc84b2d1ce6335f4c3b94dc3e2ecc306c638 /src/hb-open-type.hh
parent3ab9717ac7248daeb34a1be0fbf5d7c9604a5358 (diff)
parente5c82fbba2b2dfbc3fefbd8db0c97cd8379eec0c (diff)
downloadharfbuzz_ng-8bf1ec54dfd29a2c1a2890b061f754b97ec24fdf.tar.gz
Merge "Update HarfBuzz to 8.2.2" into main am: e5c82fbba2
Original change: https://android-review.googlesource.com/c/platform/external/harfbuzz_ng/+/2795694 Change-Id: I745ca04feeb215d4b40064a81b49a423ef40655a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'src/hb-open-type.hh')
-rw-r--r--src/hb-open-type.hh24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh
index 6d464a353..d3fdd1caf 100644
--- a/src/hb-open-type.hh
+++ b/src/hb-open-type.hh
@@ -718,30 +718,6 @@ struct ArrayOf
return_trace (out);
}
- /* Special-case ArrayOf Offset16To structs with a maximum size. */
- template <typename T = Type,
- typename Base = void,
- hb_enable_if (hb_has_max_size (typename T::target_t) &&
- sizeof (T) == 2)>
- HB_ALWAYS_INLINE
- bool sanitize (hb_sanitize_context_t *c, const Base *base) const
- {
- TRACE_SANITIZE (this);
-
- if (unlikely (!sanitize_shallow (c))) return_trace (false);
-
- unsigned max_len = 65536 + Type::target_t::max_size;
-
- if (unlikely (c->check_range_fast (base, max_len)))
- return_trace (true);
-
- unsigned int count = len;
- for (unsigned int i = 0; i < count; i++)
- if (unlikely (!c->dispatch (arrayZ[i], base)))
- return_trace (false);
- return_trace (true);
- }
-
template <typename ...Ts>
HB_ALWAYS_INLINE
bool sanitize (hb_sanitize_context_t *c, Ts&&... ds) const