From 0fa6fb946c3fda93ccec3bd01f810025306248b3 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 6 Sep 2018 19:09:12 +0200 Subject: [PATCH] Remove broken methods in ChatMarkersManager --- .../chat_markers/ChatMarkersManager.java | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/ChatMarkersManager.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/ChatMarkersManager.java index e01863620..8c00c5d39 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/ChatMarkersManager.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/ChatMarkersManager.java @@ -204,44 +204,4 @@ public final class ChatMarkersManager extends Manager { public boolean removeIncomingChatMarkerMessageListener(ChatMarkersListener listener) { return incomingListeners.remove(listener); } - - public void markMessageAsReceived(Message message) - throws - NotConnectedException, - InterruptedException, - IllegalArgumentException { - if (message == null) { - throw new IllegalArgumentException("To and From needed"); - } - message.addExtension(new ChatMarkersElements.ReceivedExtension(message.getStanzaId())); - sendChatMarkerMessage(message); - } - - public void markMessageAsDisplayed(Message message) - throws - NotConnectedException, - InterruptedException, - IllegalArgumentException { - if (message == null) { - throw new IllegalArgumentException("To and From needed"); - } - message.addExtension(new ChatMarkersElements.DisplayedExtension(message.getStanzaId())); - sendChatMarkerMessage(message); - } - - public void markMessageAsAcknowledged(Message message) - throws - NotConnectedException, - InterruptedException, - IllegalArgumentException { - if (message == null) { - throw new IllegalArgumentException("To and From needed"); - } - message.addExtension(new ChatMarkersElements.AcknowledgedExtension(message.getStanzaId())); - sendChatMarkerMessage(message); - } - - private void sendChatMarkerMessage(Message message) throws NotConnectedException, InterruptedException { - connection().sendStanza(message); - } }