From ca1bb8e6341b1efd05d42225b8971fec91334e18 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Tue, 13 Jan 2015 13:24:43 -0800 Subject: [PATCH] Fixed: compiling warning for the function CGContextDrawImage --- AppKit/CPDatePicker/_CPDatePickerClock.j | 1 - AppKit/CoreGraphics/CGContext.j | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/AppKit/CPDatePicker/_CPDatePickerClock.j b/AppKit/CPDatePicker/_CPDatePickerClock.j index 4da28de56..2c3a76f56 100644 --- a/AppKit/CPDatePicker/_CPDatePickerClock.j +++ b/AppKit/CPDatePicker/_CPDatePickerClock.j @@ -24,7 +24,6 @@ @import "CPTextField.j" @import "CPImageView.j" @import "CALayer.j" -@import "CPGraphicsContext.j" @class _CPCibCustomResource @class CPDatePicker diff --git a/AppKit/CoreGraphics/CGContext.j b/AppKit/CoreGraphics/CGContext.j index a00199586..ed518129a 100644 --- a/AppKit/CoreGraphics/CGContext.j +++ b/AppKit/CoreGraphics/CGContext.j @@ -738,7 +738,7 @@ else if (CPFeatureIsCompatible(CPVMLFeature)) else { // I have declared these functions here to make it compile without warnings with the new compiler under rhino. - CGContextClearRect = CGContextDrawLinearGradient = CGContextClip = CGContextClipToRect = function() {throw new Error("function is not declared in this environment")} + CGContextClearRect = CGContextDrawLinearGradient = CGContextClip = CGContextClipToRect = CGContextDrawImage = function() {throw new Error("function is not declared in this environment")} } /*! @endcond