Merge pull request #4000 from sahiljain/fix-3966

Remove Struct::GetPointer() useless method
This commit is contained in:
Wouter van Oortmerssen
2016-08-24 10:34:32 -07:00
committed by GitHub

View File

@@ -1436,11 +1436,6 @@ class Struct FLATBUFFERS_FINAL_CLASS {
return ReadScalar<T>(&data_[o]);
}
template<typename T> T GetPointer(uoffset_t o) const {
auto p = &data_[o];
return reinterpret_cast<T>(p + ReadScalar<uoffset_t>(p));
}
template<typename T> T GetStruct(uoffset_t o) const {
return reinterpret_cast<T>(&data_[o]);
}