1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-26 04:28:00 +01:00

Remove deprecated method in PUshNotificationsManager

This commit is contained in:
Florian Schmaus 2018-04-07 21:22:39 +02:00
parent 93680e34e2
commit 609f4243d9

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.
*