the following code is giving me an unused function in the lines that I have bolded. Can any explain to me why it's giving this error? When I'm attempting to build the app it crashes so I'm assuming it's because of these 2 lines of code as there are no other errors. I'm new to this so sorry if it's a basic question!
static inline CGVector TCVectorMultiply(CGVector vector, CGFloat m);
**static inline CGVector TCVectorMinus(CGPoint p1, CGPoint p2)**
{
return CGVectorMake(
p1.x - p2.x,
p1.y - p2.y
);
}
static inline CGFloat TCVectorLength(CGVector vector)
{
return sqrtf(vector.dx * vector.dx + vector.dy * vector.dy);
}
**static inline CGVector TCVectorUnit(CGVector vector)**
{
CGFloat invLen = 1.0 / TCVectorLength(vector);
return TCVectorMultiply(vector, invLen);
}
****static inline CGVector TCVectorMultiply(CGVector vector, CGFloat m)****
{
return CGVectorMake(
vector.dx * m,
vector.dy * m
);
}
Here is the build output message :)
2014-07-17 09:41:27.785 Comet Crash[21089:607] Cannot find executable for CFBundle 0x99046c0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2014-07-17 09:41:27.869 Comet Crash[21089:607] Unknown class ViewController in Interface Builder file.