Repository: qpid-jms Updated Branches: refs/heads/master f3c2f041f -> e6fe539fb
Remove unused method, code for this lives in the destination helper now. Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/e6fe539f Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/e6fe539f Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/e6fe539f Branch: refs/heads/master Commit: e6fe539fb2fb68f7a8384ec376a207fc71c9bcdb Parents: f3c2f04 Author: Timothy Bish <[email protected]> Authored: Wed Oct 8 11:48:12 2014 -0400 Committer: Timothy Bish <[email protected]> Committed: Wed Oct 8 11:48:12 2014 -0400 ---------------------------------------------------------------------- .../amqp/message/AmqpMessageSupport.java | 34 -------------------- 1 file changed, 34 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/e6fe539f/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpMessageSupport.java ---------------------------------------------------------------------- diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpMessageSupport.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpMessageSupport.java index 0812208..2d9c6f7 100644 --- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpMessageSupport.java +++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpMessageSupport.java @@ -18,12 +18,6 @@ package org.apache.qpid.jms.provider.amqp.message; import java.util.Map; -import javax.jms.Destination; -import javax.jms.Queue; -import javax.jms.TemporaryQueue; -import javax.jms.TemporaryTopic; -import javax.jms.Topic; - import org.apache.qpid.proton.amqp.Symbol; import org.apache.qpid.proton.message.Message; @@ -160,34 +154,6 @@ public final class AmqpMessageSupport { } /** - * Given a JMS Destination object return the correct message annotations that - * will identify the type of Destination the name represents, Queue. Topic, etc. - * - * @param destination - * The JMS Destination to be examined. - * - * @return the correct message annotation values to describe the given Destination. - */ - public static String destinationAttributes(Destination destination) { - if (destination instanceof Queue) { - if (destination instanceof TemporaryQueue) { - return TEMP_QUEUE_ATTRIBUTES; - } else { - return QUEUE_ATTRIBUTES; - } - } - if (destination instanceof Topic) { - if (destination instanceof TemporaryTopic) { - return TEMP_TOPIC_ATTRIBUTES; - } else { - return TOPIC_ATTRIBUTES; - } - } - - return null; - } - - /** * Safe way to access message annotations which will check internal structure and * either return the annotation if it exists or null if the annotation or any annotations * are present. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
