Skip to content

Commit

Permalink
Refactor: remove GetEventsXY() since the code is broken and never bee…
Browse files Browse the repository at this point in the history
…n used now.
  • Loading branch information
lychees committed Aug 11, 2024
1 parent 371b85d commit db86e37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/game_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -981,14 +981,6 @@ int Game_Map::GetTerrainTag(int x, int y) {
return terrain_data[chip_index];
}

void Game_Map::GetEventsXY(std::vector<Game_Event*>& events, int x, int y) {
for (Game_Event& ev : GetEvents()) {
if (ev.IsInPosition(x, y) && ev.IsActive()) {
events.push_back(&ev);
}
}
}

Game_Event* Game_Map::GetEventAt(int x, int y, bool require_active) {
auto& events = GetEvents();
for (auto iter = events.rbegin(); iter != events.rend(); ++iter) {
Expand Down
2 changes: 0 additions & 2 deletions src/game_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,6 @@ namespace Game_Map {
*/
std::vector<Game_CommonEvent>& GetCommonEvents();

void GetEventsXY(std::vector<Game_Event*>& events, int x, int y);

/**
* @param x x position on the map
* @param y y position on the map
Expand Down

0 comments on commit db86e37

Please sign in to comment.