remove some commented old code
This commit is contained in:
parent
df724a4682
commit
fc0c404836
3 changed files with 0 additions and 11 deletions
|
@ -35,7 +35,6 @@ public:
|
|||
public:
|
||||
QString name;
|
||||
QString constantName;
|
||||
QString group_num;
|
||||
QString song;
|
||||
QString layoutId;
|
||||
QString location;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue