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

Unified Diff: Source/platform/mac/ColorMac.mm

Issue 336523003: Remove unused Mac platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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 | « Source/platform/mac/ColorMac.h ('k') | Source/platform/mac/EmptyProtocolDefinitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/ColorMac.mm
diff --git a/Source/platform/mac/ColorMac.mm b/Source/platform/mac/ColorMac.mm
index fce2a926d96bb49cc9ea5e3a6e32da2be2ae841b..a97d55513b59a500035577d65f9b5e34376c347d 100644
--- a/Source/platform/mac/ColorMac.mm
+++ b/Source/platform/mac/ColorMac.mm
@@ -33,39 +33,6 @@ namespace WebCore {
// NSColor calls don't throw, so no need to block Cocoa exceptions in this file
-static bool useOldAquaFocusRingColor;
-
-RGBA32 oldAquaFocusRingColor()
-{
- return 0xFF7DADD9;
-}
-
-void setUsesTestModeFocusRingColor(bool newValue)
-{
- useOldAquaFocusRingColor = newValue;
-}
-
-bool usesTestModeFocusRingColor()
-{
- return useOldAquaFocusRingColor;
-}
-
-static RGBA32 makeRGBAFromNSColor(NSColor *c)
-{
- CGFloat redComponent;
- CGFloat greenComponent;
- CGFloat blueComponent;
- CGFloat alpha;
- [c getRed:&redComponent green:&greenComponent blue:&blueComponent alpha:&alpha];
-
- return makeRGBA(255 * redComponent, 255 * greenComponent, 255 * blueComponent, 255 * alpha);
-}
-
-Color colorFromNSColor(NSColor *c)
-{
- return Color(makeRGBAFromNSColor(c));
-}
-
NSColor *nsColor(const Color& color)
{
RGBA32 c = color.rgb();
« no previous file with comments | « Source/platform/mac/ColorMac.h ('k') | Source/platform/mac/EmptyProtocolDefinitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698