Reputation: 7766
I've getting the following warning Expression result unused
I've inherited the code from my predecessor and I've no idea how to fix this?
Obviously syntax has changed, any ideas ?
static float lowValue;
static float highValue;
- (void) calculateHighLow{
highValue; //here
lowValue; // and here
Upvotes: 0
Views: 572
Reputation: 3634
If they aren't being used anywhere you can just delete the lines, or you can simply just decide to deal with the warning (though not a good idea). You can also comment out the code, in case you figure out that might need them someday.
Upvotes: 0
Reputation: 2530
Obviously those two lines don't do anything so you can just remove them.
Upvotes: 2