Remove unused addNewMapToGroup() overload

This commit is contained in:
BigBahss 2021-02-18 17:45:09 -05:00 committed by huderlem
parent 0d3e2d90e6
commit b0e3b862e1
2 changed files with 0 additions and 24 deletions

View file

@ -101,7 +101,6 @@ public:
void deleteFile(QString path);
bool readMapGroups();
Map* addNewMapToGroup(QString mapName, int groupNum);
Map* addNewMapToGroup(QString, int, Map*, bool);
QString getNewMapName();
QString getProjectTitle();

View file

@ -1836,29 +1836,6 @@ bool Project::readMapGroups() {
return true;
}
Map* Project::addNewMapToGroup(QString mapName, int groupNum) {
// Setup new map in memory, but don't write to file until map is actually saved later.
mapNames.append(mapName);
mapGroups.insert(mapName, groupNum);
groupedMapNames[groupNum].append(mapName);
Map *map = new Map;
map->isPersistedToFile = false;
map->setName(mapName);
mapConstantsToMapNames.insert(map->constantName, map->name);
mapNamesToMapConstants.insert(map->name, map->constantName);
setNewMapHeader(map, mapLayoutsTable.size() + 1);
setNewMapLayout(map);
loadMapTilesets(map);
setNewMapBlockdata(map);
setNewMapBorder(map);
setNewMapEvents(map);
setNewMapConnections(map);
mapCache.insert(mapName, map);
return map;
}
Map* Project::addNewMapToGroup(QString mapName, int groupNum, Map *newMap, bool existingLayout) {
mapNames.append(mapName);
mapGroups.insert(mapName, groupNum);