Index: chrome/browser/platform_util_mac.mm |
diff --git a/chrome/browser/platform_util_mac.mm b/chrome/browser/platform_util_mac.mm |
index 1934b1ca31e9df04855e65640004c347458bf3a5..ada0a98d4637f65bbf48340c22cdc7c69b5ef904 100644 |
--- a/chrome/browser/platform_util_mac.mm |
+++ b/chrome/browser/platform_util_mac.mm |
@@ -152,32 +152,4 @@ bool IsVisible(gfx::NativeView view) { |
[[view window] isVisible]); |
} |
-void SimpleErrorBox(gfx::NativeWindow parent, |
- const string16& title, |
- const string16& message) { |
- // Ignore the title; it's the window title on other platforms and ignorable. |
- NSAlert* alert = [[[NSAlert alloc] init] autorelease]; |
- [alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)]; |
- [alert setMessageText:base::SysUTF16ToNSString(message)]; |
- [alert setAlertStyle:NSWarningAlertStyle]; |
- [alert runModal]; |
-} |
- |
-bool SimpleYesNoBox(gfx::NativeWindow parent, |
- const string16& title, |
- const string16& message) { |
- // Ignore the title; it's the window title on other platforms and ignorable. |
- NSAlert* alert = [[[NSAlert alloc] init] autorelease]; |
- [alert setMessageText:base::SysUTF16ToNSString(message)]; |
- [alert setAlertStyle:NSWarningAlertStyle]; |
- |
- [alert addButtonWithTitle: |
- l10n_util::GetNSString(IDS_CONFIRM_MESSAGEBOX_YES_BUTTON_LABEL)]; |
- [alert addButtonWithTitle: |
- l10n_util::GetNSString(IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL)]; |
- |
- NSInteger result = [alert runModal]; |
- return result == NSAlertFirstButtonReturn; |
-} |
- |
} // namespace platform_util |