Skip to content

Commit

Permalink
Fixed: MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbiely committed Dec 30, 2023
1 parent eefc190 commit 2c4ef27
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions include/gaia/ecs/query_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ namespace gaia {
GAIA_PROF_SCOPE(queryinfo::match);

auto& data = m_lookupCtx.data;
const auto& ids = data.ids;
const auto& pairs = data.pairs;
if (pairs.empty())
return;
Expand All @@ -262,14 +261,6 @@ namespace gaia {
QueryEntityOpPairSpan ops_ids_any = ops_ids.subspan(data.firstAny, data.firstNot - data.firstAny);
QueryEntityOpPairSpan ops_ids_not = ops_ids.subspan(data.firstNot);

{
const auto it = entityToArchetypeMap.find(EntityLookupKey(ops_ids_all[0].id));
const auto& archetypes = it->second;
GAIA_EACH(archetypes) {
const auto* pArchetype = archetypes[i];
}
}

if (!ops_ids_all.empty()) {
GAIA_EACH(ops_ids_all) {
const auto& p = ops_ids_all[i];
Expand Down Expand Up @@ -362,7 +353,6 @@ namespace gaia {

// Try find matches with optional components.
GAIA_EACH(ids_any) {
const auto& ids = ids_any[i];
const auto& archetypes = *archetypesWithId[i];
const auto lastMatchedIdx = data.lastMatchedArchetypeIdx[jj];
data.lastMatchedArchetypeIdx[jj++] = archetypes.size();
Expand Down
10 changes: 0 additions & 10 deletions single_include/gaia.h
Original file line number Diff line number Diff line change
Expand Up @@ -18864,7 +18864,6 @@ namespace gaia {
GAIA_PROF_SCOPE(queryinfo::match);

auto& data = m_lookupCtx.data;
const auto& ids = data.ids;
const auto& pairs = data.pairs;
if (pairs.empty())
return;
Expand All @@ -18881,14 +18880,6 @@ namespace gaia {
QueryEntityOpPairSpan ops_ids_any = ops_ids.subspan(data.firstAny, data.firstNot - data.firstAny);
QueryEntityOpPairSpan ops_ids_not = ops_ids.subspan(data.firstNot);

{
const auto it = entityToArchetypeMap.find(EntityLookupKey(ops_ids_all[0].id));
const auto& archetypes = it->second;
GAIA_EACH(archetypes) {
const auto* pArchetype = archetypes[i];
}
}

if (!ops_ids_all.empty()) {
GAIA_EACH(ops_ids_all) {
const auto& p = ops_ids_all[i];
Expand Down Expand Up @@ -18981,7 +18972,6 @@ namespace gaia {

// Try find matches with optional components.
GAIA_EACH(ids_any) {
const auto& ids = ids_any[i];
const auto& archetypes = *archetypesWithId[i];
const auto lastMatchedIdx = data.lastMatchedArchetypeIdx[jj];
data.lastMatchedArchetypeIdx[jj++] = archetypes.size();
Expand Down

0 comments on commit 2c4ef27

Please sign in to comment.