Gielsgaard
Aspiring developer
Profile
Posts: 17
Reg: Feb 06, 2012
Denmark
1,920
03/19/14 12:42 PM (10 years ago)

Only 1 warnings now, but what does it mean?

Hi I'm new and with no coding skills, please - can someone explain to me, what this warning means: "Unused function "radians"" And how/what shall I do with it? It's showing by the line "static inline double radians (do....." Here is copy paste from Xcode #include <math.h> #import "BT_imageTools.h" static inline double radians (double degrees) {return degrees * M_PI/180;} @implementation BT_imageTools static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth, float ovalHeight){ float fw, fh; if (ovalWidth == 0 || ovalHeight == 0){ CGContextAddRect(context, rect); return; Thank you in advanced! Gielsgaard
 
maverick96
Lost but trying
Profile
Posts: 174
Reg: Jan 22, 2014
Orlando
3,390
like
03/19/14 01:12 PM (10 years ago)
I also been getting this code as of late.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/19/14 01:40 PM (10 years ago)
Basically that's saying it's found a function that isn't being used elsewhere. It's absolutely nothing to worry about...it won't stop your app from compiling, likely won't stop the plugin from working (assuming the developer did his/her job), and certainly won't prevent the app from being approved. In general, you can ignore warnings, especially those related to deprecated code. Warnings are exactly that...things that might need to get addressed at some point, but don't prevent the app from compiling. Depending on your version of Xcode and the iOS SDK, you could see many warnings, but you can safely ignore them. Same in Eclipse for Android. Mark
 
maverick96
Lost but trying
Profile
Posts: 174
Reg: Jan 22, 2014
Orlando
3,390
like
03/19/14 01:42 PM (10 years ago)
Thank you GoNorthWest!
 
Gielsgaard
Aspiring developer
Profile
Posts: 17
Reg: Feb 06, 2012
Denmark
1,920
like
03/19/14 01:54 PM (10 years ago)
Thank you Mark!! I have 31 of them, I'm not quite sure how I end up with only one, but "a few click and yes" solve the 30 of them:-D But it's so great! with your explanation, now i will not worry so much about them, thanks:-)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/19/14 01:56 PM (10 years ago)
Rock on! For the most part, it's probably best to leave them alone, as I'm not sure what the "solve" stuff might do. There could be unintended consequences of that. In any event...glad I could help! Mark
 
Gielsgaard
Aspiring developer
Profile
Posts: 17
Reg: Feb 06, 2012
Denmark
1,920
like
03/19/14 02:02 PM (10 years ago)
Mark, can I ask, what does the no. "2" on your member badge, and the red ribbon with no. "13" means?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/19/14 02:06 PM (10 years ago)
The #2 means I've been a member for two years (for as long as they've offered memberships), and the Red Ribbon with #13 means I attended BuzzCon in St. Louis in 2013. Mark
 
Gielsgaard
Aspiring developer
Profile
Posts: 17
Reg: Feb 06, 2012
Denmark
1,920
like
03/19/14 02:10 PM (10 years ago)
ok, thanks :-)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.