Removed code which calculates size incorrectly (#11395)

Change-Id: I2fbe7031ee1d778f8ebe96a8e773113d8529fba9