Commit c478545b authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Removed PresenceEventListener#presencePriorityChanged(ClientSession, Presence). JM-1335

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10262 b35dd754-fafc-0310-a699-88a17e54d16e
parent bf603d9c
...@@ -662,11 +662,6 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider, ...@@ -662,11 +662,6 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
} }
public void presencePriorityChanged(ClientSession session, Presence presence) {
// Do nothing
}
public boolean addingContact(Roster roster, RosterItem item, boolean persistent) { public boolean addingContact(Roster roster, RosterItem item, boolean persistent) {
// Do nothing // Do nothing
return true; return true;
......
...@@ -686,7 +686,7 @@ public class LocalClientSession extends LocalSession implements ClientSession { ...@@ -686,7 +686,7 @@ public class LocalClientSession extends LocalSession implements ClientSession {
// The client has changed the priority of his presence // The client has changed the priority of his presence
sessionManager.changePriority(this, oldPresence.getPriority()); sessionManager.changePriority(this, oldPresence.getPriority());
// Notify listeners that the priority of the session/resource has changed // Notify listeners that the priority of the session/resource has changed
PresenceEventDispatcher.presencePriorityChanged(this, presence); PresenceEventDispatcher.presenceChanged(this, presence);
} }
else if (this.presence.isAvailable()) { else if (this.presence.isAvailable()) {
// Notify listeners that the show or status value of the presence has changed // Notify listeners that the show or status value of the presence has changed
......
...@@ -93,23 +93,6 @@ public class PresenceEventDispatcher { ...@@ -93,23 +93,6 @@ public class PresenceEventDispatcher {
} }
/**
* Notification message indicating that the presence priority of a session has
* been modified. Presence priorities are used when deciding which session of
* the same user should receive a message that was sent to the user bare's JID.
*
* @param session the affected session.
* @param presence the presence that changed the priority.
*/
public static void presencePriorityChanged(ClientSession session, Presence presence) {
if (!listeners.isEmpty()) {
for (PresenceEventListener listener : listeners) {
listener.presencePriorityChanged(session, presence);
}
}
}
/** /**
* Notification message indicating that an available session has changed its * Notification message indicating that an available session has changed its
* presence. This is the case when the user presence changed the show value * presence. This is the case when the user presence changed the show value
......
...@@ -47,16 +47,6 @@ public interface PresenceEventListener { ...@@ -47,16 +47,6 @@ public interface PresenceEventListener {
*/ */
public void unavailableSession(ClientSession session, Presence presence); public void unavailableSession(ClientSession session, Presence presence);
/**
* Notification message indicating that the presence priority of a session has
* been modified. Presence priorities are used when deciding which session of
* the same user should receive a message that was sent to the user bare's JID.
*
* @param session the affected session.
* @param presence the presence that changed the priority.
*/
public void presencePriorityChanged(ClientSession session, Presence presence);
/** /**
* Notification message indicating that an available session has changed its * Notification message indicating that an available session has changed its
* presence. This is the case when the user presence changed the show value * presence. This is the case when the user presence changed the show value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment