diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-06 09:03:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 09:41:29 +0200 |
commit | 161a7e3a4bb4b50226ff2ab38e39a9c149001f7e (patch) | |
tree | ac159b01889a7d29fa1628f64ea8c286be2d93f6 /odk/examples/java | |
parent | d1d2d3296b9f98a5144022612d03f6cb419164e5 (diff) |
java: remove unused parameters
Change-Id: Iefc29756fd02b6898803c8a7faecd55108e088eb
Diffstat (limited to 'odk/examples/java')
5 files changed, 9 insertions, 9 deletions
diff --git a/odk/examples/java/Inspector/InspectorPane.java b/odk/examples/java/Inspector/InspectorPane.java index 9fb8e3d2afbb..77689d06b4ab 100644 --- a/odk/examples/java/Inspector/InspectorPane.java +++ b/odk/examples/java/Inspector/InspectorPane.java @@ -218,7 +218,7 @@ import com.sun.star.uno.XComponentContext; invoke(oUnoMethodNode); } } - String sSourceCode = m_oSourceCodeGenerator.addSourceCodeOfUnoObject(oTreePathProvider, true, true, true); + String sSourceCode = m_oSourceCodeGenerator.addSourceCodeOfUnoObject(oTreePathProvider, true, true); m_xTreeControlProvider.setSourceCode(sSourceCode); } @@ -454,7 +454,7 @@ import com.sun.star.uno.XComponentContext; } - public boolean expandNode(XUnoNode _oUnoNode, XTreePathProvider _xTreePathProvider){ + public boolean expandNode(XUnoNode _oUnoNode){ if ( _oUnoNode != null ) { _oUnoNode.setFoldable(false); if (m_xTreeControlProvider.isMethodNode(_oUnoNode)){ diff --git a/odk/examples/java/Inspector/SourceCodeGenerator.java b/odk/examples/java/Inspector/SourceCodeGenerator.java index 1cb00b5a2380..f9cb5362d3e5 100644 --- a/odk/examples/java/Inspector/SourceCodeGenerator.java +++ b/odk/examples/java/Inspector/SourceCodeGenerator.java @@ -76,7 +76,7 @@ public class SourceCodeGenerator { } - public String addSourceCodeOfUnoObject(XTreePathProvider _xTreepathProvider, boolean _brememberPath, boolean _bAddMethodSignature, boolean _baddHeader){ + public String addSourceCodeOfUnoObject(XTreePathProvider _xTreepathProvider, boolean _brememberPath, boolean _baddHeader){ String sVariableName = ""; if (_xTreepathProvider != null) { for (int i = 0; i < _xTreepathProvider.getPathCount(); i++){ @@ -108,7 +108,7 @@ public class SourceCodeGenerator { } } } - String sCompleteCode = combineCompleteSourceCode(sMainMethodSignature, _baddHeader); + String sCompleteCode = combineCompleteSourceCode(_baddHeader); xTreepathProvider = _xTreepathProvider; if (_brememberPath){ aTreepathProviders.add(_xTreepathProvider); @@ -203,7 +203,7 @@ public class SourceCodeGenerator { resetSourceCodeGeneration(_nLanguage); int ncount = aTreepathProviders.size(); for (int i=0; i< ncount; i++){ - sSourceCode = addSourceCodeOfUnoObject(aTreepathProviders.get(i), false, (i==0), (i == (ncount-1))); + sSourceCode = addSourceCodeOfUnoObject(aTreepathProviders.get(i), false, (i == (ncount-1))); } return sSourceCode; } @@ -240,7 +240,7 @@ public class SourceCodeGenerator { } - private String combineCompleteSourceCode(String _sMethodSignature, boolean _bAddHeader){ + private String combineCompleteSourceCode(boolean _bAddHeader){ String sCompleteCode = ""; if (_bAddHeader){ sMainMethodSignature = m_xLanguageSourceCodeGenerator.getMainMethodSignatureSourceCode(oInitialUnoNode, sINITIALVARIABLENAME); diff --git a/odk/examples/java/Inspector/SwingTreeControlProvider.java b/odk/examples/java/Inspector/SwingTreeControlProvider.java index 80827497aeaf..098ccde4d37b 100644 --- a/odk/examples/java/Inspector/SwingTreeControlProvider.java +++ b/odk/examples/java/Inspector/SwingTreeControlProvider.java @@ -281,7 +281,7 @@ public class SwingTreeControlProvider implements XTreeControlProvider{ public void treeWillExpand(javax.swing.event.TreeExpansionEvent event) throws javax.swing.tree.ExpandVetoException { SwingTreePathProvider oSwingTreePathProvider = new SwingTreePathProvider(event.getPath()); XUnoNode oUnoNode = oSwingTreePathProvider.getLastPathComponent(); - if (!m_oInspectorPane.expandNode(oUnoNode, oSwingTreePathProvider)){ + if (!m_oInspectorPane.expandNode(oUnoNode)){ throw new ExpandVetoException(event); } } diff --git a/odk/examples/java/Inspector/SwingUnoNode.java b/odk/examples/java/Inspector/SwingUnoNode.java index dbe79e6887c0..f0a421c85b86 100644 --- a/odk/examples/java/Inspector/SwingUnoNode.java +++ b/odk/examples/java/Inspector/SwingUnoNode.java @@ -72,7 +72,7 @@ public class SwingUnoNode extends HideableMutableTreeNode implements XUnoNode{ } public void openIdlDescription(String _SDKPath) { - m_oUnoNode.openIdlDescription(_SDKPath, getClassName(), getAnchor()); + m_oUnoNode.openIdlDescription(_SDKPath, getClassName()); } public Object[] getParameterObjects() { diff --git a/odk/examples/java/Inspector/UnoNode.java b/odk/examples/java/Inspector/UnoNode.java index d43f09074521..4e6352ed647a 100644 --- a/odk/examples/java/Inspector/UnoNode.java +++ b/odk/examples/java/Inspector/UnoNode.java @@ -134,7 +134,7 @@ public class UnoNode{ sLabel = _sLabel; } - public void openIdlDescription(String _sIDLUrl, String _sClassName, String _sAnchor){ + public void openIdlDescription(String _sIDLUrl, String _sClassName){ try{ String sIDLUrl = _sIDLUrl; String sAnchor = ""; // TODO find out how the Anchor may be set at the html file; //_sAnchor; |