ui/cocoa: Drop tests for CGImageCreateWithImageInRect support
commitb63901d84cc22a06f82900620fdbe01ff16511ec
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 19 May 2015 08:11:17 +0000 (19 09:11 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 May 2015 08:11:17 +0000 (19 09:11 +0100)
tree3181e01e78564f258770d37f32cd0d8f83767064
parent4e34017c21485e5606beda7e6218c36d3568b363
ui/cocoa: Drop tests for CGImageCreateWithImageInRect support

The code that tries to test at both compiletime and runtime
for whether CGImageCreateWithImageInRect is supported provokes
a compile warning on OSX 10.3:

ui/cocoa.m:378:13: warning: comparison of function 'CGImageCreateWithImageInRect'
      equal to a null pointer is always false[-Wtautological-pointer-compare]
        if (CGImageCreateWithImageInRect == NULL) { // test if "CGImageCreateWithImageInRect" is
supported on host at runtime
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~    ~~~~

The simplest way to deal with this is just to drop this code,
since we don't in practice support OSX 10.4 anyway. (10.5 was
released in 2007 and is the last PPC version, so is the earliest
we really need to continue to support at all.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1431296361-16981-2-git-send-email-peter.maydell@linaro.org
ui/cocoa.m