[nostalgia/studio] Remove unnecessary try/catch block

This commit is contained in:
Gary Talent 2022-02-03 00:39:40 -06:00
parent 395e262e3e
commit be3d094f13

View File

@ -32,12 +32,7 @@ static ox::Error run(ox::UniquePtr<ox::FileSystem> fs) noexcept {
oxRequireM(ctx, core::init(std::move(fs), "NostalgiaStudio"));
core::setWindowTitle(ctx.get(), "Nostalgia Studio");
core::setEventHandler(ctx.get(), eventHandler);
ox::UniquePtr<StudioUI> ui;
try {
ui = ox::make_unique<StudioUI>(ctx.get());
} catch (ox::Exception &ex) {
return ex.toError();
}
auto ui = ox::make_unique<StudioUI>(ctx.get());
StudioUIDrawer drawer(ui.get());
ctx->setCustomData(ui.get());
ctx->drawers.emplace_back(&drawer);