Remove deprecated method in PUshNotificationsManager

This commit is contained in:
Florian Schmaus 2018-04-07 21:22:39 +02:00
parent 93680e34e2
commit 609f4243d9
1 changed files with 0 additions and 18 deletions

View File

@ -79,24 +79,6 @@ public final class PushNotificationsManager extends Manager {
super(connection);
}
/**
* Returns true if Push Notifications is supported by the server.
*
* @return true if Push Notifications is supported by the server.
* @throws NoResponseException
* @throws XMPPErrorException
* @throws NotConnectedException
* @throws InterruptedException
* @deprecated Use {@link #isSupported()} instead.
*/
@Deprecated
// TODO: Remove in Smack 4.3
public boolean isSupportedByServer()
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
return ServiceDiscoveryManager.getInstanceFor(connection())
.serverSupportsFeature(PushNotificationsElements.NAMESPACE);
}
/**
* Returns true if Push Notifications are supported by this account.
*