You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2015/03/19 17:55:51 UTC

[02/50] [abbrv] ios commit: CB-7753 - Remove CDV_IsIPad and CDV_IsIPhone5 macros in CDVAvailabiltyDeprecated.h

CB-7753 - Remove CDV_IsIPad and CDV_IsIPhone5 macros in CDVAvailabiltyDeprecated.h


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/de02f999
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/de02f999
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/de02f999

Branch: refs/heads/unplug-whitelist
Commit: de02f9994bfbed20143a6ea38492f3722a84f9de
Parents: ffdf774
Author: Shazron Abdullah <sh...@gmail.com>
Authored: Fri Mar 6 17:04:42 2015 -0800
Committer: Shazron Abdullah <sh...@gmail.com>
Committed: Fri Mar 6 17:04:42 2015 -0800

----------------------------------------------------------------------
 CordovaLib/Classes/CDVAvailabilityDeprecated.h | 14 --------------
 1 file changed, 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/de02f999/CordovaLib/Classes/CDVAvailabilityDeprecated.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVAvailabilityDeprecated.h b/CordovaLib/Classes/CDVAvailabilityDeprecated.h
index 4562a7c..abf7a16 100644
--- a/CordovaLib/Classes/CDVAvailabilityDeprecated.h
+++ b/CordovaLib/Classes/CDVAvailabilityDeprecated.h
@@ -24,17 +24,3 @@
 #else
     #define CDV_DEPRECATED(version, msg) __attribute__((deprecated()))
 #endif
-
-static inline BOOL CDV_IsIPad(void) CDV_DEPRECATED(3.7 .0, "This will be removed in 4.0.0");
-
-static inline BOOL CDV_IsIPhone5(void) CDV_DEPRECATED(3.7 .0, "This will be removed in 4.0.0");
-
-static inline BOOL CDV_IsIPad(void)
-{
-    return [[UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom)] && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad;
-}
-
-static inline BOOL CDV_IsIPhone5(void)
-{
-    return ([[UIScreen mainScreen] bounds].size.width == 568 && [[UIScreen mainScreen] bounds].size.height == 320) || ([[UIScreen mainScreen] bounds].size.height == 568 && [[UIScreen mainScreen] bounds].size.width == 320);
-}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org