Skip to content

Commit

Permalink
libdeng2|Bank: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 5, 2013
1 parent 5bc7e3d commit 15c312f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doomsday/libdeng2/src/data/bank.cpp
Expand Up @@ -111,8 +111,6 @@ class Cache : public Lockable

} // namespace internal

static PathTree::ComparisonFlags const FIND_ITEM = PathTree::MatchFull | PathTree::NoBranch;

DENG2_PIMPL(Bank)
{
/**
Expand Down Expand Up @@ -449,7 +447,7 @@ DENG2_PIMPL(Bank)

Data &item()
{
return _bank.d->items.find(_path, FIND_ITEM);
return _bank.d->items.find(_path, PathTree::MatchFull | PathTree::NoBranch);
}

void doLoad()
Expand Down Expand Up @@ -838,7 +836,7 @@ Bank::IData &Bank::data(Path const &path) const
LOG_AS("Bank");

// First check if the item is already in memory.
Instance::Data &item = d->items.find(path, FIND_ITEM);
Instance::Data &item = d->items.find(path, PathTree::MatchFull | PathTree::NoBranch);
DENG2_GUARD(item);

// Mark it used.
Expand Down

0 comments on commit 15c312f

Please sign in to comment.