[buffer] Remove wrong optimization
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 5 May 2011 20:09:45 +0000 (16:09 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 5 May 2011 20:09:45 +0000 (16:09 -0400)
commit3935af1c0d0f53a5fd6054e1ee219f3adda42dca
tree64b66df2979003d70b0a5f4dfc791d3159e3b27f
parent46df6828513d56cd60467e36cbe45aa06648f488
[buffer] Remove wrong optimization

While the cluster fields of the glyph string are usually sorted, they
wouldn't be in special cases (for example for non-native direction).
Blindly using bsearch is plain wrong.  If we want to reintroduce this
optimization we have to make sure we know the buffer clusters are
monotonic and in which direction.  Not sure it's worth it though.
src/hb-buffer.cc