* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27627 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-09-18 16:04:28 +00:00
parent e9a105668d
commit 6126236e8a

View File

@ -473,7 +473,7 @@ BPlusTree::SetTo(Inode* stream)
fNodeSize = fHeader->NodeSize();
{
// validity check
uint32 toMode[] = {S_STR_INDEX, S_INT_INDEX, S_UINT_INDEX,
S_LONG_LONG_INDEX, S_ULONG_LONG_INDEX, S_FLOAT_INDEX,
S_DOUBLE_INDEX};
@ -495,7 +495,6 @@ BPlusTree::SetTo(Inode* stream)
// in the original BFS code - we will honour it nevertheless
fAllowDuplicates = stream->IsIndex()
|| (stream->Mode() & S_ALLOW_DUPS) != 0;
}
CachedNode cached(this, fHeader->RootNode());
RETURN_ERROR(fStatus = cached.Node() ? B_OK : B_BAD_DATA);