summaryrefslogtreecommitdiff
path: root/swext
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 14:53:00 +0200
committerNoel Grandin <noel@peralex.com>2014-08-11 12:33:02 +0200
commit41709cc2688738f091a4b17839fe853caa5a0bfd (patch)
tree2e12ca2d594ce6767146c25862869ab7e9d2bc14 /swext
parent2b9ad46b23fdb39cd456cdc543cce346c6f325c3 (diff)
java: remove unused parameters
Change-Id: I47c618117e079bb2ef90d92c449c8166ea957fa5
Diffstat (limited to 'swext')
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/Settings.java2
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java6
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java12
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java10
4 files changed, 14 insertions, 16 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Settings.java b/swext/mediawiki/src/com/sun/star/wiki/Settings.java
index f18ff8f7ed48..432a959a854f 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/Settings.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/Settings.java
@@ -110,7 +110,7 @@ public class Settings
return m_aWikiDocs;
}
- public Object[] getWikiDocList( int serverid, int num )
+ public Object[] getWikiDocList( int serverid )
{
String wikiserverurl = getWikiConUrlByNumber( serverid );
List<String> theDocs = new ArrayList<String>();
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
index c2af4e95204f..1570c3d635e2 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
@@ -188,7 +188,7 @@ public class WikiEditSettingDialog extends WikiDialog
}
}
- public void DoLogin( XDialog xDialog )
+ public void DoLogin()
{
String sRedirectURL = "";
String sURL = "";
@@ -372,7 +372,7 @@ public class WikiEditSettingDialog extends WikiDialog
Thread.yield();
} catch( java.lang.Exception e ){}
- DoLogin( xDialogForThread );
+ DoLogin();
aThis.EnableControls( true );
aThis.SetThrobberActive( false );
aThis.SetThrobberVisible( false );
@@ -390,7 +390,7 @@ public class WikiEditSettingDialog extends WikiDialog
{
try
{
- DoLogin( xDialog );
+ DoLogin();
} catch( java.lang.Exception e )
{}
finally
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
index ad0513bbb08c..c5accfabd944 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
@@ -191,7 +191,7 @@ public final class WikiEditorImpl extends WeakBase
String urlstring = url.Complete;
m_statusListeners.put( urlstring, listener );
// synchroneous callback required!!!
- callStatusListener( urlstring, listener );
+ callStatusListener( urlstring );
}
public void callStatusListeners()
@@ -200,18 +200,18 @@ public final class WikiEditorImpl extends WeakBase
{
String uristring = iter.next();
XStatusListener listener = m_statusListeners.get(uristring);
- callStatusListener( uristring, listener );
+ callStatusListener( uristring );
}
}
- public void callStatusListener( String uristring, XStatusListener listener )
+ public void callStatusListener( String uristring )
{
try
{
URI uri = new URI( uristring );
// check whether any blogs are live...
- setListenerState( listener, "command", false );
+ setListenerState( "command");
} catch ( URISyntaxException ex )
{
ex.printStackTrace();
@@ -219,12 +219,10 @@ public final class WikiEditorImpl extends WeakBase
}
- private void setListenerState( XStatusListener listener, String urlstring, boolean state )
+ private void setListenerState( String urlstring)
{
com.sun.star.util.URL url = new com.sun.star.util.URL();
url.Complete = urlstring;
- //listener.statusChanged( new FeatureStateEvent( this, url, "", state, false, null ));
-
}
public void sendArticle()
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java
index 2f4d7e887f3c..e6718572732d 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java
@@ -54,11 +54,11 @@ public class WikiPropDialog extends WikiDialog{
}
InitStrings( xContext );
- InitShowBrowser( xContext );
- InitControls( xContext );
+ InitShowBrowser();
+ InitControls();
}
- private void InitControls( XComponentContext xContext )
+ private void InitControls()
{
try
{
@@ -90,7 +90,7 @@ public class WikiPropDialog extends WikiDialog{
}
}
- private void InitShowBrowser( XComponentContext xContext )
+ private void InitShowBrowser()
{
try
{
@@ -149,7 +149,7 @@ public class WikiPropDialog extends WikiDialog{
try
{
short [] sel = (short[]) GetPropSet("WikiList").getPropertyValue("SelectedItems");
- xPS.setPropertyValue("StringItemList", m_aSettings.getWikiDocList(sel[0], 5));
+ xPS.setPropertyValue("StringItemList", m_aSettings.getWikiDocList(sel[0]));
}
catch (Exception ex)
{