Remove an unused function

sceneinput
scrawl 10 years ago
parent 8426d376f0
commit c8d6679a25

@ -71,7 +71,6 @@ namespace MWGui
SortFilterItemModel::SortFilterItemModel(ItemModel *sourceModel) SortFilterItemModel::SortFilterItemModel(ItemModel *sourceModel)
: mCategory(Category_All) : mCategory(Category_All)
, mFilter(0) , mFilter(0)
, mShowEquipped(true)
, mSortByType(true) , mSortByType(true)
{ {
mSourceModel = sourceModel; mSourceModel = sourceModel;
@ -91,9 +90,6 @@ namespace MWGui
{ {
MWWorld::Ptr base = item.mBase; MWWorld::Ptr base = item.mBase;
if (item.mType == ItemStack::Type_Equipped && !mShowEquipped)
return false;
int category = 0; int category = 0;
if (base.getTypeName() == typeid(ESM::Armor).name() if (base.getTypeName() == typeid(ESM::Armor).name()
|| base.getTypeName() == typeid(ESM::Clothing).name()) || base.getTypeName() == typeid(ESM::Clothing).name())

@ -24,7 +24,6 @@ namespace MWGui
void setCategory (int category); void setCategory (int category);
void setFilter (int filter); void setFilter (int filter);
void setShowEquipped (bool show) { mShowEquipped = show; }
/// Use ItemStack::Type for sorting? /// Use ItemStack::Type for sorting?
void setSortByType(bool sort) { mSortByType = sort; } void setSortByType(bool sort) { mSortByType = sort; }
@ -49,7 +48,6 @@ namespace MWGui
int mCategory; int mCategory;
int mFilter; int mFilter;
bool mShowEquipped;
bool mSortByType; bool mSortByType;
}; };

Loading…
Cancel
Save