cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: CB-7753 - Remove CDV_IsIPad and CDV_IsIPhone5 macros in CDVAvailabiltyDeprecated.h
Date Sat, 07 Mar 2015 01:04:42 GMT
Repository: cordova-ios
Updated Branches:
  refs/heads/4.0.x ffdf7742f -> de02f9994


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/4.0.x
Commit: de02f9994bfbed20143a6ea38492f3722a84f9de
Parents: ffdf774
Author: Shazron Abdullah <shazron@gmail.com>
Authored: Fri Mar 6 17:04:42 2015 -0800
Committer: Shazron Abdullah <shazron@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


Mime
View raw message