Removes Static Analyzer Warning

The calls to deprecated methods are wrapped with preprocessor statements to disable the warnings.

The preprocessor statement:

```Objective-C
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
// Here deprecated code
#pragma clang diagnostic pop
```