Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

static inline instead of duplicate method declaration

  • Loading branch information...
commit 6ac44280c6c2a7c8376390ed8966865769558ec6 1 parent 3a9cfe9
Laurin authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 KGNoise.m
View
6 KGNoise.m
@@ -11,11 +11,9 @@
static NSUInteger const kKGNoiseImageSize = 128;
#if TARGET_OS_IPHONE
-static CGFloat *gradientComponentsForColors(UIColor *color1, UIColor *color2);
-static CGFloat *gradientComponentsForColors(UIColor *color1, UIColor *color2){
+static inline CGFloat *gradientComponentsForColors(UIColor *color1, UIColor *color2){
#else
-static CGFloat *gradientComponentsForColors(NSColor *color1, NSColor *color2);
-static CGFloat *gradientComponentsForColors(NSColor *color1, NSColor *color2){
+static inline CGFloat *gradientComponentsForColors(NSColor *color1, NSColor *color2){
#endif
CGFloat *components = malloc(8*sizeof(CGFloat));
const CGFloat *alternateBackgroundComponents = CGColorGetComponents([color1 CGColor]);
Please sign in to comment.
Something went wrong with that request. Please try again.