aemu: remove unused files
Not needed.
BUG=377379303
TEST=CI
Change-Id: I58b253c773d99c0aa83291cae752ec787e969c81
GitOrigin-RevId: b4e61f9dea628cff1766b1f86a568e636ac689bc
diff --git a/base/include/aemu/base/containers/EntityManager.h b/base/include/aemu/base/containers/EntityManager.h
index 6862079..05021c8 100644
--- a/base/include/aemu/base/containers/EntityManager.h
+++ b/base/include/aemu/base/containers/EntityManager.h
@@ -4,9 +4,6 @@
*/
#pragma once
-#include "aemu/base/containers/Lookup.h"
-#include "aemu/base/Optional.h"
-
#include <functional>
#include <unordered_map>
#include <vector>
@@ -427,8 +424,12 @@
// If we didn't explicitly track, just fail.
ComponentHandle getComponentHandle(EntityHandle h) const {
- auto componentHandlePtr = android::base::find(mEntityToComponentMap, h);
- if (!componentHandlePtr) return INVALID_COMPONENT_HANDLE;
+ const auto it = mEntityToComponentMap.find(h);
+ if (it == mEntityToComponentMap.end()) {
+ return INVALID_COMPONENT_HANDLE;
+ }
+
+ auto componentHandlePtr = &it->second;
return *componentHandlePtr;
}