diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 4644f9c60..b193b1791 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -1436,11 +1436,6 @@ class Struct FLATBUFFERS_FINAL_CLASS { return ReadScalar(&data_[o]); } - template T GetPointer(uoffset_t o) const { - auto p = &data_[o]; - return reinterpret_cast(p + ReadScalar(p)); - } - template T GetStruct(uoffset_t o) const { return reinterpret_cast(&data_[o]); }