mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 08:50:01 +00:00
vfs_vector: Remove unused variable in FindAndRemoveVectorElement()
This wasn't being used for anything, so it can be removed.
This commit is contained in:
parent
cec9e9b811
commit
42a4c6b79e
1 changed files with 2 additions and 2 deletions
|
@ -39,11 +39,11 @@ std::shared_ptr<VfsDirectory> VectorVfsDirectory::GetParentDirectory() const {
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
static bool FindAndRemoveVectorElement(std::vector<T>& vec, std::string_view name) {
|
static bool FindAndRemoveVectorElement(std::vector<T>& vec, std::string_view name) {
|
||||||
auto iter =
|
const auto iter =
|
||||||
std::find_if(vec.begin(), vec.end(), [name](const T& e) { return e->GetName() == name; });
|
std::find_if(vec.begin(), vec.end(), [name](const T& e) { return e->GetName() == name; });
|
||||||
if (iter == vec.end())
|
if (iter == vec.end())
|
||||||
return false;
|
return false;
|
||||||
auto old_size = vec.size();
|
|
||||||
vec.erase(iter);
|
vec.erase(iter);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue