From 78cd4f7d47a0af79dcced404ae744c5f5dd170df Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Wed, 20 Dec 2006 01:13:43 +0000 Subject: [PATCH] removing getLocalInetSocketAddress(). method has turned out to be of no use. --- .../protocol/mock/MockCallParticipant.java | 15 -------------- .../protocol/sip/CallParticipantSipImpl.java | 20 ------------------- .../service/protocol/CallParticipant.java | 11 ---------- 3 files changed, 46 deletions(-) diff --git a/src/net/java/sip/communicator/impl/protocol/mock/MockCallParticipant.java b/src/net/java/sip/communicator/impl/protocol/mock/MockCallParticipant.java index 827a72193..e61d77602 100644 --- a/src/net/java/sip/communicator/impl/protocol/mock/MockCallParticipant.java +++ b/src/net/java/sip/communicator/impl/protocol/mock/MockCallParticipant.java @@ -171,21 +171,6 @@ public Contact getContact() return null; } - /** - * The address that we have used to contact this participant. In cases - * where no direct connection has been established with the participant, - * this method will return the address that will be first tried when - * connection is established (often the one used to connect with the - * protocol server). The address may change during a session and - * - * @return The address that we have used to contact this participant. - */ - public InetSocketAddress getLocalTransportAddress() - { - /** @todo implement getLocalTransportAddress() */ - return null; - } - /** * Returns the protocol provider that this participant belongs to. * @return a reference to the ProtocolProviderService that this participant diff --git a/src/net/java/sip/communicator/impl/protocol/sip/CallParticipantSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/CallParticipantSipImpl.java index 633cf9a53..757cf1b71 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/CallParticipantSipImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/CallParticipantSipImpl.java @@ -431,26 +431,6 @@ public void setTransportAddress(InetSocketAddress transportAddress) , transportAddress); } - /** - * The address that we have used to contact this participant. In cases - * where no direct connection has been established with the participant, - * this method will return the address that will be first tried when - * connection is established (often the one used to connect with the - * protocol server). The address may change during a session and - * - * @return The address that we have used to contact this participant. - */ - public InetSocketAddress getLocalTransportAddress() - { - /** @todo this is ugly as we don't really know which listening point - * we're using. will do until we implement ice. */ - int defaultLpPort - = ((ProtocolProviderServiceSipImpl)getProtocolProvider()) - .getDefaultListeningPoint().getPort(); - - return new InetSocketAddress(defaultLpPort); - } - /** * Returns the protocol provider that this participant belongs to. * @return a reference to the ProtocolProviderService that this participant diff --git a/src/net/java/sip/communicator/service/protocol/CallParticipant.java b/src/net/java/sip/communicator/service/protocol/CallParticipant.java index 2996c249e..1fd94c54f 100644 --- a/src/net/java/sip/communicator/service/protocol/CallParticipant.java +++ b/src/net/java/sip/communicator/service/protocol/CallParticipant.java @@ -107,17 +107,6 @@ public interface CallParticipant */ public byte[] getImage(); - /** - * The address that we have used to contact this participant. In cases - * where no direct connection has been established with the participant, - * this method will return the address that will be first tried when - * connection is established (often the one used to connect with the - * protocol server). The address may change during a session and - * - * @return The address that we have used to contact this participant. - */ - public InetSocketAddress getLocalTransportAddress(); - /** * Returns the protocol provider that this participant belongs to. * @return a reference to the ProtocolProviderService that this participant