summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-07-13 22:22:02 -0700
committerJeff Brown <jeffbrown@google.com>2011-07-14 04:11:22 -0700
commit686f62fcaf4ce2f48d662fa89fb2e84ee9339c4d (patch)
treefa392c2e074f53876e4fa9438f78acfc5146787b /opengl/tests/gl_basic/gl_basic.cpp
parent8a1d693e592ba872024f7bce647024c4e167836e (diff)
Replace Vector _grow/_shrink checks with assert.
On review of the code, _grow and _shrink are checking for conditions that cannot happen and that don't even really make sense. For example, if _shrink is called with where + amount > mCount then this is really bad, however the check only considered the case when where >= mCount and then it would arbitrarily choose a new value for where. Huh? As it happens, the callers are correctly validating the arguments before passing them down to these methods so we can get rid of this code. Change-Id: I921852dba8997065bb0e9cac733e82028d14afcd
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions