I'm trying to figure out how to suppress a compiler warning for a delegate method that I have no purpose of using. I know I could have an empty method body, but I would still like to find a way to not do this, so it is less code in my source.
I saw this answer here: Dynamic forwarding: suppress Incomplete Implementation warning
But that seems to overcomplicate the matter. Is there any way of just having a one liner in the header file of my ViewController.h so I never see this warning?
I appreciate any help offered.
For the record, I'm wanting to silence the warning for this method:
- (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask
didResumeAtOffset:(int64_t)fileOffset
expectedTotalBytes:(int64_t)expectedTotalBytes;