remove some commented old code

This commit is contained in:
garak 2021-07-22 12:22:57 -04:00
parent df724a4682
commit fc0c404836
3 changed files with 0 additions and 11 deletions

View file

@ -35,7 +35,6 @@ public:
public:
QString name;
QString constantName;
QString group_num;
QString song;
QString layoutId;
QString location;

View file

@ -1145,10 +1145,6 @@ Tileset* Project::loadTileset(QString label, Tileset *tileset) {
}
bool Project::loadBlockdata(MapLayout *layout) {
// if (map->hasUnsavedChanges()) {
// return true;
// }
QString path = QString("%1/%2").arg(root).arg(layout->blockdata_path);
layout->blockdata = readBlockdata(path);
layout->lastCommitMapBlocks.blocks = layout->blockdata;
@ -1175,10 +1171,6 @@ void Project::setNewMapBlockdata(Map *map) {
}
bool Project::loadLayoutBorder(MapLayout *layout) {
// if (map->hasUnsavedChanges()) {
// return true;
// }
QString path = QString("%1/%2").arg(root).arg(layout->border_path);
layout->border = readBlockdata(path);
int borderLength = layout->getBorderWidth() * layout->getBorderHeight();
@ -1860,7 +1852,6 @@ Map* Project::addNewMapToGroup(QString mapName, int groupNum, Map *newMap, bool
setNewMapBorder(newMap);
}
//loadMapTilesets(newMap);
loadLayoutTilesets(newMap->layout);
setNewMapEvents(newMap);
setNewMapConnections(newMap);

View file

@ -260,7 +260,6 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() {
if (this->existingLayout) {
project->loadMapLayout(newMap);
}
newMap->group_num = QString::number(group);
map = newMap;
emit applied();
this->close();