diff options
author | Xan Lopez <xan@igalia.com> | 2012-12-14 03:16:57 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-12-14 03:16:57 +0800 |
commit | d4efef1d15b6196df51f1e618cab23084835cf17 (patch) | |
tree | f964f8eaf4c2e41d84e4c12dd0e23dc1876a1d92 /src | |
parent | ad212021766f1e64d6ccdd7a51434d0e4dcda489 (diff) | |
download | gsoc2013-epiphany-d4efef1d15b6196df51f1e618cab23084835cf17.tar.gz gsoc2013-epiphany-d4efef1d15b6196df51f1e618cab23084835cf17.tar.zst gsoc2013-epiphany-d4efef1d15b6196df51f1e618cab23084835cf17.zip |
ephy-window: remove some code that's been dead for ages
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-window.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 76c96d785..0649701ac 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -648,16 +648,6 @@ G_DEFINE_TYPE_WITH_CODE (EphyWindow, ephy_window, GTK_TYPE_APPLICATION_WINDOW, G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_CONTAINER, ephy_window_embed_container_iface_init)) -/* FIXME: fix this! */ -static void -ephy_tab_get_size (EphyEmbed *embed, - int *width, - int *height) -{ - *width = -1; - *height = -1; -} - static void settings_change_notify (GtkSettings *settings, EphyWindow *window) @@ -3997,22 +3987,16 @@ ephy_window_show (GtkWidget *widget) if (!priv->has_size) { EphyEmbed *embed; - int width, height; + int flags = 0; embed = priv->active_embed; g_return_if_fail (EPHY_IS_EMBED (embed)); - ephy_tab_get_size (embed, &width, &height); - if (width == -1 && height == -1) - { - int flags = 0; - if (!priv->is_popup) - flags = EPHY_STATE_WINDOW_SAVE_SIZE; - - ephy_state_add_window (widget, "main_window", 600, 500, - TRUE, flags); - } + if (!priv->is_popup) + flags = EPHY_STATE_WINDOW_SAVE_SIZE; + ephy_state_add_window (widget, "main_window", 600, 500, + TRUE, flags); priv->has_size = TRUE; } |