Skip to content

Commit

Permalink
GUI: Remove unnecessary check
Browse files Browse the repository at this point in the history
By this point canFetchMore should have already been called, which has this check.
  • Loading branch information
fdde authored and DrMcCoy committed Dec 27, 2017
1 parent 76511e8 commit a2937df
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/gui/resourcetree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,6 @@ void ResourceTree::fetchMore(const QModelIndex &index) {
if (!index.isValid())
return;

// We only need special treatment for these archives
auto type = itemFromIndex(index)->getFileType();
if (type != Aurora::kFileTypeZIP &&
type != Aurora::kFileTypeERF &&
type != Aurora::kFileTypeMOD &&
type != Aurora::kFileTypeNWM &&
type != Aurora::kFileTypeSAV &&
type != Aurora::kFileTypeHAK &&
type != Aurora::kFileTypeRIM &&
type != Aurora::kFileTypeKEY)
return;

ResourceTreeItem *item = itemFromIndex(index);

// We already added the archive members. Nothing to do
Expand Down

0 comments on commit a2937df

Please sign in to comment.