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

Unified Diff: chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.mm

Issue 63153003: mac: Prepare for -Wunused-functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/app_list/app_list_service_mac.mm ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.mm
diff --git a/chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.mm b/chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.mm
index 563c2a15e3c1d4c721f239fefcedeefc1e8fed98..4a84a92d2734b83bf4c47efb6da2376cb7251de4 100644
--- a/chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.mm
+++ b/chrome/browser/ui/cocoa/profile_signin_confirmation_view_controller.mm
@@ -34,14 +34,6 @@ const CGFloat kWindowMinWidth = 500;
const CGFloat kButtonGap = 6;
const CGFloat kDialogAlertBarBorderWidth = 1;
-// Shift the origin of |view|'s frame by the given amount in the
-// positive y direction (up).
-void ShiftOriginY(NSView* view, CGFloat amount) {
- NSPoint origin = [view frame].origin;
- origin.y += amount;
- [view setFrameOrigin:origin];
-}
-
// Determine the frame required to fit the content of a string. Uses the
// provided height and width as preferred dimensions, where a value of
// 0.0 indicates no preference.
@@ -128,24 +120,6 @@ NSTextField* AddTextField(
return textField;
}
-// Create a new link button and add it to the specified parent.
- NSButton* AddLinkButton(
- NSView* parent,
- const string16& message,
- id target,
- SEL selector) {
- NSButton* button =
- [HyperlinkButtonCell buttonWithString:SysUTF16ToNSString(message)];
- [button setTarget:target];
- [button setAction:selector];
- HyperlinkButtonCell* cell = [button cell];
- cell.textColor =
- gfx::SkColorToCalibratedNSColor(chrome_style::GetLinkColor());
- cell.shouldUnderline = NO;
- [parent addSubview:button];
- return button;
- }
-
} // namespace
@interface ProfileSigninConfirmationViewController ()
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_mac.mm ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698