From 4f3e1c283117ad3d413722e2bdedfa51f9ec0945 Mon Sep 17 00:00:00 2001 From: Sahil Jain Date: Wed, 24 Aug 2016 04:12:25 -0400 Subject: [PATCH] Remove Struct::GetPointer() useless method --- include/flatbuffers/flatbuffers.h | 5 ----- 1 file changed, 5 deletions(-) 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]); }