Kaydet (Commit) d7a30147 authored tarafından Chr. Rossmanith's avatar Chr. Rossmanith Kaydeden (comit) Thomas Arnhold

Remove commented code in odk/examples

Change-Id: I8b28729d3cc632426efac02028f0d0e332243012
Reviewed-on: https://gerrit.libreoffice.org/3138Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst d054a817
......@@ -164,42 +164,6 @@ Reference< XInterface > SAL_CALL MyCounterImpl_create(
//#### EXPORTED ###########################################################
//#########################################################################
/**
* This function creates an implementation section in the registry and another subkey
*
* for each supported service.
* @param pServiceManager the service manager
* @param pRegistryKey the registry key
*/
// extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(void * pServiceManager, void * pRegistryKey)
// {
// sal_Bool result = sal_False;
// if (pRegistryKey)
// {
// try
// {
// Reference< XRegistryKey > xNewKey(
// reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
// OUString( RTL_CONSTASCII_USTRINGPARAM("/" IMPLNAME "/UNO/SERVICES") ) ) );
// const Sequence< OUString > & rSNL =
// MyCounterImpl::getSupportedServiceNames_Static();
// const OUString * pArray = rSNL.getConstArray();
// for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
// xNewKey->createKey( pArray[nPos] );
// return sal_True;
// }
// catch (InvalidRegistryException &)
// {
// // we should not ignore exceptions
// }
// }
// return result;
// }
/**
* This function is called to get service factories for an implementation.
*
......
......@@ -92,7 +92,6 @@ public class SourceCodeGenerator {
if (oUnoMethodNode.isInvoked()){
UnoObjectDefinition oUnoReturnObjectDefinition = getUnoObjectDefinition(_xTreepathProvider, oUnoMethodNode, i);
if (!isVariableDeclared(oUnoReturnObjectDefinition, this.generateVariableNameFromMethod(oUnoMethodNode.getXIdlMethod()))){
// sStatementCode += "\n";
sStatementCode += "\n" + getMethodStatementSourceCode(oUnoMethodNode, sVariableName, oUnoReturnObjectDefinition);
}
sVariableName = oUnoReturnObjectDefinition.getVariableName();
......@@ -103,7 +102,6 @@ public class SourceCodeGenerator {
Any oReturnObject = com.sun.star.uno.Any.complete(oUnoPropertyNode.getUnoReturnObject());
UnoObjectDefinition oUnoReturnObjectDefinition = new UnoObjectDefinition(oReturnObject);
if (!isVariableDeclared(oUnoReturnObjectDefinition, oUnoPropertyNode.getProperty().Name)){
// sStatementCode += "\n";
sStatementCode += "\n" + getPropertyStatementSourceCode(oUnoPropertyNode, sVariableName, oUnoReturnObjectDefinition);
}
sVariableName = oUnoReturnObjectDefinition.getVariableName();
......@@ -858,7 +856,6 @@ class UnoObjectDefinition{
public class JavaCodeGenerator implements XLanguageSourceCodeGenerator{
String sStatementsCode = "";
boolean bAddAnyConverter = false;
// boolean bAddTypeImport = false;
boolean bIsPropertyUnoObjectDefined = false;
public JavaCodeGenerator(){
......@@ -1549,12 +1546,7 @@ class UnoObjectDefinition{
public String getConvertedSourceCodeValueOfObject(String _sReturnVariableName, String _sObjectDescription, TypeClass _aTypeClass, String _sTypeName){
// if (m_oIntrospector.isPrimitive(_aTypeClass)){
return _sObjectDescription + " >>= " + _sReturnVariableName;
// }
// else{
// return _sReturnVariableName + " = " + _sObjectDescription;
// }
return _sObjectDescription + " >>= " + _sReturnVariableName;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment