HBASE-11005 Remove dead code in HalfStoreFileReader#getScanner#seekBefore() (Gustavo Anatoly)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1588295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-04-17 16:04:59 +00:00
parent bdef332044
commit 2c5f834a51
1 changed files with 0 additions and 4 deletions

View File

@ -297,10 +297,6 @@ public class HalfStoreFileReader extends StoreFile.Reader {
public boolean seekBefore(Cell key) throws IOException {
if (top) {
Cell fk = new KeyValue.KeyOnlyKeyValue(getFirstKey(), 0, getFirstKey().length);
// This will be null when the file is empty in which we can not
// seekBefore to any key
if (fk == null)
return false;
if (getComparator().compareOnlyKeyPortion(key, fk) <= 0) {
return false;
}