Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 9, 2016
1 parent 646f4de commit 1a7a83b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 55 deletions.
4 changes: 0 additions & 4 deletions doomsday/apps/client/src/busyrunner.cpp
Expand Up @@ -72,10 +72,6 @@ DENG2_PIMPL_NOREF(BusyRunner)

~Impl()
{
//busy().audienceForBeginning() -= this;
//busy().audienceForEnd() -= this;
//busy().audienceForTaskWillStart() -= this;

busy().setTaskRunner(nullptr);
}

Expand Down
52 changes: 1 addition & 51 deletions doomsday/apps/client/src/ui/clientwindow.cpp
Expand Up @@ -74,7 +74,6 @@ static ClientWindow *mainWindow = nullptr; // The main window, set after fully c

DENG2_PIMPL(ClientWindow)
, DENG2_OBSERVES(App, StartupComplete)
//, DENG2_OBSERVES(Games, Readiness)
, DENG2_OBSERVES(DoomsdayApp, GameChange)
, DENG2_OBSERVES(MouseEventSource, MouseStateChange)
, DENG2_OBSERVES(Canvas, FocusChange)
Expand All @@ -98,9 +97,6 @@ DENG2_PIMPL(ClientWindow)
NotificationAreaWidget *notifications = nullptr;
AlertDialog *alerts = nullptr;
ColorAdjustmentDialog *colorAdjust = nullptr;
//LabelWidget *background = nullptr;
//GuiWidget *iwadNotice = nullptr;
//GameSelectionWidget *gameSelMenu = nullptr;
HomeWidget *home = nullptr;
SafeWidgetPtr<FadeToBlackWidget> fader;
BusyWidget *busy = nullptr;
Expand Down Expand Up @@ -132,7 +128,6 @@ DENG2_PIMPL(ClientWindow)

DoomsdayApp::app().audienceForGameChange() += this;
App::app().audienceForStartupComplete() += this;
//App_Games().audienceForReadiness() += this;

// Listen to input.
self.canvas().audienceForMouseStateChange() += this;
Expand All @@ -145,18 +140,6 @@ DENG2_PIMPL(ClientWindow)

~Impl()
{
// foreach (String s, configVariableNames())
// {
// App::config(s).audienceForChange() -= this;
// }

//DoomsdayApp::app().audienceForGameChange() -= this;
//App::app().audienceForStartupComplete() -= this;
//App_Games().audienceForReadiness() -= this;

//self.canvas().audienceForFocusChange() -= this;
//self.canvas().audienceForMouseStateChange() -= this;

releaseRef(cursorX);
releaseRef(cursorY);

Expand Down Expand Up @@ -289,37 +272,6 @@ DENG2_PIMPL(ClientWindow)
}
}

#if 0
void gameReadinessUpdated()
{
DENG2_ASSERT(!App_GameLoaded());
showGameSelectionMenu(true);
}

void showGameSelectionMenu(bool show)
{
bool gotPlayable = App_Games().numPlayable() > 0;

if (show && gotPlayable)
{
gameSelMenu->show();
iwadNotice->hide();
}
else if (show && !gotPlayable)
{
gameSelMenu->hide();
iwadNotice->show();
}
else if (!show)
{
gameSelMenu->hide();
iwadNotice->hide();
}

gameSelMenu->hide(); // devel
}
#endif

void currentGameChanged(Game const &/*newGame*/)
{
// Check with Style if blurring is allowed.
Expand Down Expand Up @@ -366,7 +318,7 @@ DENG2_PIMPL(ClientWindow)
busy->enable();
break;

default:
case Normal:
//busy->hide();
// The busy widget will hide itself after a possible transition has finished.
busy->disable();
Expand Down Expand Up @@ -650,9 +602,7 @@ DENG2_PIMPL(ClientWindow)

// All the children of the compositor need to be relocated.
container().remove(*gameUI);
//container().remove(*gameSelMenu);
container().remove(*home);
//container().remove(*iwadNotice);
if (sidebar) container().remove(*sidebar);
container().remove(*notifications);
container().remove(*taskBarBlur);
Expand Down

0 comments on commit 1a7a83b

Please sign in to comment.