summaryrefslogtreecommitdiff
path: root/swext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-03-02 10:47:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-03-02 11:41:40 +0000
commit57d85c0e8d479fb3994b58265c44ac22fcd3a656 (patch)
treeeee1e75739cf959592774bd739f3ce6d082a9de4 /swext
parente09df5a70a57c06b2be846ca673dcc8b4f003918 (diff)
setListenerState does nothing
and thus callStatusListener does nothing so there seems no reason to have a m_statusListeners which is filled by addStatusListener but not emptied by removeStatusListener Change-Id: I7efdf7ccfd123bf7c2aa6add4f8db969a0019089
Diffstat (limited to 'swext')
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
index a7d4a48cdf06..e36e32e9e0b0 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
@@ -56,7 +56,6 @@ public final class WikiEditorImpl extends WeakBase
private static final String protocolName = "vnd.com.sun.star.wiki:";
private final XComponentContext m_xContext;
- private final Map<String, com.sun.star.frame.XStatusListener> m_statusListeners = new HashMap<String, com.sun.star.frame.XStatusListener>();
private XFrame m_xFrame;
private XModel m_xModel;
private final Settings m_aSettings;
@@ -177,33 +176,6 @@ public final class WikiEditorImpl extends WeakBase
com.sun.star.frame.XStatusListener listener,
com.sun.star.util.URL url )
{
- String urlstring = url.Complete;
- m_statusListeners.put( urlstring, listener );
- // synchronous callback required!!!
- callStatusListener( urlstring );
- }
-
-
-
- private void callStatusListener( String uristring )
- {
- try
- {
- new URI( uristring );
-
- // check whether any blogs are live...
- setListenerState( "command");
- } catch ( URISyntaxException ex )
- {
- ex.printStackTrace();
- }
- }
-
-
- private void setListenerState( String urlstring)
- {
- com.sun.star.util.URL url = new com.sun.star.util.URL();
- url.Complete = urlstring;
}
private void sendArticle()