From fe170e228b9d8198a78a19acf21dd9ac3cb8416a Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 10 Dec 2012 11:58:39 +0100 Subject: ephy-session: remove useless condition in if If there's already windows opened we'll never do anything in the MAYBE_OPEN_WINDOW command, so this check is redundant. --- src/ephy-session.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/ephy-session.c b/src/ephy-session.c index 10310f357..8bbfad49a 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -211,7 +211,6 @@ session_command_autoresume (EphySession *session, char *saved_session_file_path; gboolean crashed_session; EphyPrefsRestoreSessionPolicy policy; - EphyShell *shell; LOG ("ephy_session_autoresume"); @@ -225,11 +224,8 @@ session_command_autoresume (EphySession *session, policy = g_settings_get_enum (EPHY_SETTINGS_MAIN, EPHY_PREFS_RESTORE_SESSION_POLICY); - shell = ephy_shell_get_default (); - if (crashed_session == FALSE || - policy == EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER || - ephy_shell_get_n_windows (shell) > 0) + policy == EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER) { /* If we are auto-resuming, and we never want to * restore the session, clobber the session state -- cgit v1.2.3