Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2866)

Unified Diff: chrome/browser/ui/gtk/first_run_dialog.cc

Issue 67923002: Fixes for -Wunused-function on Linux, Android and ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for realz Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/auto_login_prompter.cc ('k') | chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/first_run_dialog.cc
diff --git a/chrome/browser/ui/gtk/first_run_dialog.cc b/chrome/browser/ui/gtk/first_run_dialog.cc
index 8480f312163e1cb2b5421a6fee5bbd8ffe677106..25505b58b2455850a7cd56d21801feceb3d762a8 100644
--- a/chrome/browser/ui/gtk/first_run_dialog.cc
+++ b/chrome/browser/ui/gtk/first_run_dialog.cc
@@ -34,35 +34,6 @@
#include "chrome/browser/browser_process.h"
#endif
-namespace {
-
-// Set the (x, y) coordinates of the welcome message (which floats on top of
-// the omnibox image at the top of the first run dialog).
-void SetWelcomePosition(GtkFloatingContainer* container,
- GtkAllocation* allocation,
- GtkWidget* label) {
- GValue value = { 0, };
- g_value_init(&value, G_TYPE_INT);
-
- GtkRequisition req;
- gtk_widget_size_request(label, &req);
-
- int x = base::i18n::IsRTL() ?
- allocation->width - req.width - ui::kContentAreaSpacing :
- ui::kContentAreaSpacing;
- g_value_set_int(&value, x);
- gtk_container_child_set_property(GTK_CONTAINER(container),
- label, "x", &value);
-
- int y = allocation->height / 2 - req.height / 2;
- g_value_set_int(&value, y);
- gtk_container_child_set_property(GTK_CONTAINER(container),
- label, "y", &value);
- g_value_unset(&value);
-}
-
-} // namespace
-
namespace first_run {
bool ShowFirstRunDialog(Profile* profile) {
« no previous file with comments | « chrome/browser/ui/auto_login_prompter.cc ('k') | chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698