Remove unused functions

This commit is contained in:
scawful
2024-11-10 21:40:22 -05:00
parent b40699e81d
commit 089dc4017c
2 changed files with 9 additions and 10 deletions

View File

@@ -133,8 +133,6 @@ class Bitmap {
void Get8x8Tile(int tile_index, int x, int y, std::vector<uint8_t> &tile_data, void Get8x8Tile(int tile_index, int x, int y, std::vector<uint8_t> &tile_data,
int &tile_data_offset); int &tile_data_offset);
void Get16x16Tile(int tile_index, int x, int y,
std::vector<uint8_t> &tile_data, int &tile_data_offset);
void Get16x16Tile(int tile_x, int tile_y, std::vector<uint8_t> &tile_data, void Get16x16Tile(int tile_x, int tile_y, std::vector<uint8_t> &tile_data,
int &tile_data_offset); int &tile_data_offset);

View File

@@ -1161,6 +1161,7 @@ absl::Status Overworld::SaveMap32Expanded() {
rom()->WriteLong(0x017788, core::PcToSnes(kMap32TileBRExpanded + 4))); rom()->WriteLong(0x017788, core::PcToSnes(kMap32TileBRExpanded + 4)));
RETURN_IF_ERROR( RETURN_IF_ERROR(
rom()->WriteLong(0x01779A, core::PcToSnes(kMap32TileBRExpanded + 5))); rom()->WriteLong(0x01779A, core::PcToSnes(kMap32TileBRExpanded + 5)));
return absl::OkStatus();
} }
absl::Status Overworld::SaveMap32Tiles() { absl::Status Overworld::SaveMap32Tiles() {
@@ -1449,20 +1450,20 @@ absl::Status Overworld::SaveExits() {
namespace { namespace {
bool compareItemsArrays(std::vector<OverworldItem> itemArray1, bool compareItemsArrays(std::vector<OverworldItem> item_array1,
std::vector<OverworldItem> itemArray2) { std::vector<OverworldItem> item_array2) {
if (itemArray1.size() != itemArray2.size()) { if (item_array1.size() != item_array2.size()) {
return false; return false;
} }
bool match; bool match;
for (size_t i = 0; i < itemArray1.size(); i++) { for (size_t i = 0; i < item_array1.size(); i++) {
match = false; match = false;
for (size_t j = 0; j < itemArray2.size(); j++) { for (size_t j = 0; j < item_array2.size(); j++) {
// Check all sprite in 2nd array if one match // Check all sprite in 2nd array if one match
if (itemArray1[i].x_ == itemArray2[j].x_ && if (item_array1[i].x_ == item_array2[j].x_ &&
itemArray1[i].y_ == itemArray2[j].y_ && item_array1[i].y_ == item_array2[j].y_ &&
itemArray1[i].id_ == itemArray2[j].id_) { item_array1[i].id_ == item_array2[j].id_) {
match = true; match = true;
break; break;
} }