From 5114f6dfa4a46408829e7c889feef685ae1e8e5c Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 13 Apr 2020 21:25:28 +0200 Subject: [PATCH] core: remove deprecated methods in PacketUtil Those where deprecated in 2015 with 8409dddff ("Add PacketUtil.extensionElementFrom()"), and in 2017 with 2288825b1 ("Retain smack-core API"). --- .../jivesoftware/smack/util/PacketUtil.java | 36 +------------------ 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/PacketUtil.java b/smack-core/src/main/java/org/jivesoftware/smack/util/PacketUtil.java index 6124e66f4..59755660c 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/util/PacketUtil.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/util/PacketUtil.java @@ -1,6 +1,6 @@ /** * - * Copyright © 2014 Florian Schmaus + * Copyright © 2014-2020 Florian Schmaus * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,40 +22,6 @@ import org.jivesoftware.smack.packet.ExtensionElement; public class PacketUtil { - /** - * Get a extension element from a collection. - * @param collection TODO javadoc me please - * @param element TODO javadoc me please - * @param namespace TODO javadoc me please - * @param the type of the extension element. - * @return the extension element - * @deprecated use {@link #extensionElementFrom(Collection, String, String)} instead. - */ - @Deprecated - public static PE packetExtensionfromCollection( - Collection collection, String element, - String namespace) { - return extensionElementFrom(collection, element, namespace); - } - - /** - * Get a extension element from a collection. - * - * @param collection Collection of ExtensionElements. - * @param element name of the targeted ExtensionElement. - * @param namespace namespace of the targeted ExtensionElement. - * @param Type of the ExtensionElement - * - * @return the extension element - * @deprecated use {@link #extensionElementFrom(Collection, String, String)} instead - */ - @Deprecated - public static PE packetExtensionFromCollection( - Collection collection, String element, - String namespace) { - return extensionElementFrom(collection, element, namespace); - } - /** * Get a extension element from a collection. *