[jasper/world] Cleanup

This commit is contained in:
Gary Talent 2025-01-11 23:12:44 -06:00
parent 590b2524e5
commit 2b9609e308
2 changed files with 0 additions and 10 deletions

View File

@ -83,7 +83,6 @@ WorldEditorImGui::WorldEditorImGui(studio::StudioContext &sctx, ox::StringParam
m_sctx.project->fileUpdated.connect(this, &WorldEditorImGui::handleDepUpdate);
m_loader.resourcesUpdated.connect(&m_view, &WorldEditorView::setupWorld);
m_loader.tileUpdated.connect(&m_view, &WorldEditorView::setupTile);
Editor::undoStack()->changeTriggered.connect(this, &WorldEditorImGui::undoStackChanged);
studio::openConfig<WorldEditorConfig>(
keelCtx(m_sctx), itemPath(), [this](WorldEditorConfig const&config) {
m_view.setAnimate(config.animateBg);
@ -427,13 +426,6 @@ ox::Error WorldEditorImGui::loadObjectSets() noexcept {
return {};
}
ox::Error WorldEditorImGui::undoStackChanged(studio::UndoCommand const*cmd) {
if (dynamic_cast<EditWorldSizeCommand const*>(cmd)) {
OX_RETURN_ERROR(m_loader.loadWorldStatic());
}
return {};
}
bool WorldEditorImGui::tileSelected(ox::Point const&pt) const noexcept {
return m_selection && m_selection->contains(pt);
}

View File

@ -91,8 +91,6 @@ class WorldEditorImGui: public studio::Editor {
ox::Error loadObjectSets() noexcept;
ox::Error undoStackChanged(studio::UndoCommand const*);
[[nodiscard]]
bool tileSelected(ox::Point const&pt) const noexcept;