Remove redundant #include, #define & comments

This commit is contained in:
J. Graeme Lingard
2010-10-12 23:35:16 +01:00
committed by Cédric Bosdonnat
parent ed927d918e
commit bda7aaeb74
36 changed files with 2 additions and 149 deletions

View File

@@ -40,7 +40,6 @@
#include "bridges/cpp_uno/shared/vtablefactory.hxx"
#include "share.hxx"
// #include <stdio.h>
using namespace ::com::sun::star::uno;
@@ -48,7 +47,6 @@ using namespace ::com::sun::star::uno;
namespace
{
//==================================================================================================
static typelib_TypeClass cpp2uno_call(
bridges::cpp_uno::shared::CppInterfaceProxy * pThis,
const typelib_TypeDescription * pMemberTypeDescr,

View File

@@ -30,8 +30,6 @@
#include <stdio.h>
// #include <malloc.h>
#include <com/sun/star/uno/genfunc.hxx>
#include "com/sun/star/uno/RuntimeException.hpp"
#include <uno/data.h>

View File

@@ -31,7 +31,6 @@
#include <sal/alloca.h>
#include "jni_bridge.h"
//#include "jni_finalizer.h"
#include <rtl/ustrbuf.hxx>

View File

@@ -24,12 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
//#include <com/sun/star/bridge/XServer.hpp>
//#include <com/sun/star/bridge/XClient.hpp>
#include <stdio.h>
#include <com/sun/star/bridge/XInstanceProvider.hpp>
//#include <com/sun/star/bridge/XConnectionAdministration.hpp>
#include <osl/thread.hxx>

View File

@@ -35,7 +35,6 @@
#include <windows.h>
#include "sal/types.h"
//#include "tools/pathutils.hxx"
namespace cli_ure {

View File

@@ -31,13 +31,9 @@
#include "uno/mapping.hxx"
#include "uno/dispatcher.h"
//#include "cascade_mappping.hxx"
#include "cppu/EnvDcp.hxx"
//#define LOG_CALLING_named_purpose_getMapping
//#define LOG_LIFECYLE_MediatorMapping
#ifdef LOG_LIFECYLE_MediatorMapping
# include <iostream>
# define LOG_LIFECYLE_MediatorMapping_emit(x) x

View File

@@ -30,7 +30,6 @@
#include "libxml/parser.h"
#include "libxml/xpath.h"
//#include "libxml/xpathinternals.h"
#include "rtl/ustring.hxx"
namespace jfw
{

View File

@@ -1,16 +1,9 @@
#ifndef com_sun_star_chart2_CoordinateSystemType_idl
#define com_sun_star_chart2_CoordinateSystemType_idl
// #ifndef com_sun_star_chart2_XCoordinateSystemType_idl
// #include <com/sun/star/chart2/XCoordinateSystemType.idl>
// #endif
//=============================================================================
module com { module sun { module star { module chart2 {
//=============================================================================
/**
<p>
The service CoordinateSystemType represents a special type of coordinate system.
@@ -29,8 +22,6 @@ service CoordinateSystemType
// interface ::com::sun::star::chart2::XCoordinateSystemType;
};
//=============================================================================
}; }; }; };
#endif

View File

@@ -32,7 +32,6 @@
#include <com/sun/star/container/XContainer.idl>
#include <com/sun/star/style/XStyle.idl>
//#include <com/sun/star/chart2/ChartTypeSupplier.idl>
#include <com/sun/star/chart2/CoordinateSystemSupplier.idl>
#include <com/sun/star/chart2/data/XDataSink.idl>
#include <com/sun/star/chart2/data/XDataSource.idl>

View File

@@ -27,10 +27,6 @@
#ifndef com_sun_star_chart2_FillBitmap_idl
#define com_sun_star_chart2_FillBitmap_idl
// #ifndef __com_sun_star_awt_XBitmap_idl__
// #include <com/sun/star/awt/XBitmap.idl>
// #endif
#ifndef __com_sun_star_awt_Point_idl__
#include <com/sun/star/awt/Point.idl>
#endif

View File

@@ -27,8 +27,6 @@
#ifndef com_sun_star_chart2_XDataSeries_idl
#define com_sun_star_chart2_XDataSeries_idl
// #include <com/sun/star/chart2/XCoordinateSystem.idl>
#ifndef __com_sun_star_beans_XPropertySet_idl__
#include <com/sun/star/beans/XPropertySet.idl>
#endif

View File

@@ -5,16 +5,9 @@
#include <com/sun/star/uno/XInterface.idl>
#endif
// #ifndef __com_sun_star_drawing_XShapes_idl__
// #include <com/sun/star/drawing/XShapes.idl>
// #endif
//=============================================================================
module com { module sun { module star { module chart2 {
//=============================================================================
//................... wrong --> XDrawGroup
// [in] com::sun::star::drawing::XShapes xShapes
@@ -26,8 +19,6 @@ interface XTarget : ::com::sun::star::uno::XInterface
//... provide something for creation of Transformation ...
};
//=============================================================================
}; }; }; };
#endif

View File

@@ -29,7 +29,6 @@
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/frame/XModel.idl>
// #include <com/sun/star/beans/PropertyValue.idl>
module com
{

View File

@@ -29,7 +29,6 @@
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/chart2/data/XDataSequence.idl>
// #include <com/sun/star/lang/IllegalArgumentException.idl>
module com
{

View File

@@ -31,15 +31,10 @@
#include <com/sun/star/lang/Locale.idl>
#include <com/sun/star/uno/XInterface.idl>
//#include <com/sun/star/lang/CascadeTransliterator.idl>
//=============================================================================
module com { module sun { module star { module util {
//=============================================================================
published enum SearchAlgorithms {
ABSOLUTE, // "normal" a kind of Boyer-Moore
REGEXP, // regular expression

View File

@@ -28,11 +28,8 @@
#ifndef _RTL_TRES_HXX_
#define _RTL_TRES_HXX_
#include <rtl/tres.h>
//#include <stdarg.h>
// <namespace_rtl>
namespace rtl
{

View File

@@ -28,7 +28,6 @@
#include "system.h"
#include "sockimpl.h"
#include "secimpl.h"
//#include "daemimpl.h"
#include <osl/diagnose.h>

View File

@@ -29,21 +29,16 @@
#include <osl/thread.h>
#include <osl/diagnose.h>
//#include <osl/socket.h>
#ifndef _OSL_FILE_PATH_HELPER_H_
#include "file_path_helper.h"
#endif
#include "procimpl.h"
//#include "sockimpl.h"
//#include "secimpl.h"
#include <ctype.h>
//#ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx>
//#endif
// for exception logging
#include <stdio.h>

View File

@@ -66,7 +66,6 @@ static const sal_Char* MOUNTTAB="/etc/mnttab";
#include <sys/vfs.h>
#define HAVE_STATFS_H
#include <sys/quota.h>
//#include <ctype.h>
static const sal_Char* MOUNTTAB="/etc/mtab";
#elif defined(NETBSD) || defined(FREEBSD)
@@ -75,7 +74,6 @@ static const sal_Char* MOUNTTAB="/etc/mtab";
#include <sys/ucred.h>
#include <sys/mount.h>
#include <ufs/ufs/quota.h>
//#include <ctype.h>
#define HAVE_STATFS_H
/* No mounting table on *BSD
@@ -85,7 +83,6 @@ static const sal_Char* MOUNTTAB="/etc/mtab";
#elif defined(MACOSX)
#include <ufs/ufs/quota.h>
//#include <ctype.h>
#include <sys/param.h>
#include <sys/mount.h>
#define HAVE_STATFS_H

View File

@@ -25,12 +25,10 @@
*
************************************************************************/
#include "system.h"
#include <osl/pipe.h>
#include <osl/diagnose.h>
/*#include <osl/signal.h>*/
#include <osl/thread.h>
#include <osl/interlck.h>
@@ -45,9 +43,6 @@
sal_Bool SAL_CALL osl_psz_getUserIdent(oslSecurity Security, sal_Char *pszIdent, sal_uInt32 nMax);
oslPipe SAL_CALL osl_psz_createPipe(const sal_Char *pszPipeName, oslPipeOptions Options, oslSecurity Security);
/*#define DEBUG_OSL_PIPE*/
/*#define TRACE_OSL_PIPE*/
/*****************************************************************************/
/* enum oslPipeError */

View File

@@ -25,22 +25,15 @@
*
************************************************************************/
//------------------------------------------------------------------------
//------------------------------------------------------------------------
#ifndef _OSL_SECURITY_CONST_H_
#define _OSL_SECURITY_CONST_H_
#if ( defined WNT ) // Windows
//#define UNICODE
#include <tools/prewin.h>
// #include <windows.h>
#include <io.h>
#include <tools/postwin.h>
#endif
//------------------------------------------------------------------------
//------------------------------------------------------------------------
#include <sal/types.h>
#include <rtl/ustring.hxx>
#include <osl/file.hxx>
@@ -55,7 +48,6 @@
#endif
#include <testshl/simpleheader.hxx>
// LLA: #include <testshl2/cmdlinebits.hxx>
#define BUFSIZE 1024

View File

@@ -54,13 +54,8 @@
inline sal_Bool SAL_CALL operator== (const SocketAddr & Addr) const;
*/
//------------------------------------------------------------------------
// include files
//------------------------------------------------------------------------
#include <testshl/simpleheader.hxx>
//#include "osl_Socket_Const.h"
#include "sockethelper.hxx"
using namespace osl;

View File

@@ -54,13 +54,8 @@
inline sal_Bool SAL_CALL operator== (const SocketAddr & Addr) const;
*/
//------------------------------------------------------------------------
// include files
//------------------------------------------------------------------------
#include <testshl/simpleheader.hxx>
//#include "osl_Socket_Const.h"
#include "sockethelper.hxx"
using namespace osl;

View File

@@ -54,13 +54,8 @@
inline sal_Bool SAL_CALL operator== (const SocketAddr & Addr) const;
*/
//------------------------------------------------------------------------
// include files
//------------------------------------------------------------------------
#include <testshl/simpleheader.hxx>
//#include "osl_Socket_Const.h"
#include "sockethelper.hxx"
using namespace osl;

View File

@@ -54,13 +54,8 @@
inline sal_Bool SAL_CALL operator== (const SocketAddr & Addr) const;
*/
//------------------------------------------------------------------------
// include files
//------------------------------------------------------------------------
#include <testshl/simpleheader.hxx>
//#include "osl_Socket_Const.h"
#include "sockethelper.hxx"
#include <osl/conditn.hxx>

View File

@@ -24,14 +24,10 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
//------------------------------------------------------------------------
//------------------------------------------------------------------------
#ifndef _SOCKETHELPER_HXX_
#define _SOCKETHELPER_HXX_
//------------------------------------------------------------------------
//------------------------------------------------------------------------
#include <sal/types.h>
#include <rtl/textenc.h>
#include <rtl/ustring.hxx>
@@ -78,7 +74,6 @@ extern "C"
#if ( defined WNT ) // Windows
#include <tools/prewin.h>
// #include <windows.h>
#include <winsock.h>
#include <string.h>
#include <tools/postwin.h>
@@ -86,9 +81,6 @@ extern "C"
#endif
//------------------------------------------------------------------------
//------------------------------------------------------------------------
#ifdef __cplusplus
}
#endif

View File

@@ -39,8 +39,6 @@
#include "testshl/stringhelper.hxx"
#include <testshl/simpleheader.hxx>
//#include "stringhelper.hxx"
//#include "valueequal.hxx"
#include <rtl/bootstrap.hxx>
#include <rtl/ustrbuf.hxx>

View File

@@ -32,8 +32,6 @@
// this file is converted to use with testshl2
// original was placed in sal/test/textenc.cxx
// -----------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -45,13 +43,9 @@
#include <rtl/logfile.hxx>
#include <testshl/simpleheader.hxx>
// #include <osl/module.hxx>
#include <osl/file.hxx>
#if ( defined WNT ) // Windows
#include <tools/prewin.h>
// #define UNICODE
// #define WIN32_LEAN_AND_MEAN
// #include <windows.h>
#include <tchar.h>
#include <tools/postwin.h>
#endif

View File

@@ -34,7 +34,6 @@
#include "rtl/string.h"
#include "rtl/string.hxx"
#include "rtl/textenc.h"
// #include "rtl/tres.h"
#include <testshl/tresstatewrapper.hxx>
#include "rtl/ustring.hxx"
#include "sal/types.h"

View File

@@ -32,28 +32,18 @@
// this file is converted to use with testshl2
// original was placed in sal/test/textenc.cxx
// -----------------------------------------------------------------------------
#include <string.h>
#include <stdio.h>
// #include <osl/diagnose.h>
#include <rtl/string.hxx>
#include <testshl/simpleheader.hxx>
#define TEST_ENSURE(c, m) CPPUNIT_ASSERT_MESSAGE((m), (c))
// #if OSL_DEBUG_LEVEL > 0
// #define TEST_ENSHURE(c, m) OSL_ENSURE(c, m)
// #else
// #define TEST_ENSHURE(c, m) OSL_VERIFY(c)
// #endif
using namespace rtl;
// -----------------------------------------------------------------------------
namespace rtl_OString
{
class oldtests : public CppUnit::TestFixture

View File

@@ -32,8 +32,6 @@
// this file is converted to use with testshl2
// original was placed in sal/test/textenc.cxx
// -----------------------------------------------------------------------------
#include <string.h>
#include <stdio.h>
@@ -44,8 +42,6 @@
#include <wcstr.h>
#endif
// #include <osl/diagnose.h>
#include <rtl/ustring.hxx>
#include <rtl/string.hxx>
@@ -55,15 +51,10 @@
#include <testshl/simpleheader.hxx>
#define TEST_ENSURE(c, m) CPPUNIT_ASSERT_MESSAGE((m), (c))
// #if OSL_DEBUG_LEVEL > 0
// #define TEST_ENSHURE(c, m) OSL_ENSURE(c, m)
// #else
// #define TEST_ENSHURE(c, m) OSL_VERIFY(c)
// #endif
using namespace rtl;
// -----------------------------------------------------------------------------
namespace rtl_OUString
{
class oldtests : public CppUnit::TestFixture

View File

@@ -32,14 +32,9 @@
// this file is converted to use with testshl2
// original was placed in sal/test/textenc.cxx
// -----------------------------------------------------------------------------
#include <string.h>
#include <stdio.h>
// #include <osl/diagnose.h>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
@@ -50,13 +45,7 @@ using namespace rtl;
#define TEST_ENSURE(c, m) CPPUNIT_ASSERT_MESSAGE((m), (c))
// #if OSL_DEBUG_LEVEL > 0
// #define TEST_ENSHURE(c, m) OSL_ENSURE(c, m)
// #else
// #define TEST_ENSHURE(c, m) OSL_VERIFY(c)
// #endif
// -----------------------------------------------------------------------------
namespace rtl_OStringBuffer
{
class oldtests : public CppUnit::TestFixture

View File

@@ -29,9 +29,6 @@
#include <systools/win32/shell9x.h>
#include <systools/win32/kernel9x.h>
//#include <windows.h>
//#include <shlobj.h>
int _cdecl main( int argc, char * argv[] )
{
BROWSEINFOW bi;

View File

@@ -31,7 +31,6 @@
#include <jni.h>
//#include <iostream>
#include <stdio.h>
#include <sal/main.h>
#include <rtl/process.h>

View File

@@ -31,7 +31,6 @@
#include <jni.h>
//#include <iostream>
#include <stdio.h>
#include <sal/main.h>
#include <rtl/process.h>
@@ -47,8 +46,6 @@
#include <com/sun/star/registry/XImplementationRegistration.hpp>
#include <com/sun/star/java/XJavaThreadRegister_11.hpp>
//#include <cppuhelper/implbase1.hxx>
using namespace std;
using namespace rtl;
using namespace cppu;

View File

@@ -34,8 +34,6 @@
#include <cppuhelper/servicefactory.hxx>
#include <osl/diagnose.h>
//#include <vos/dynload.hxx>
#include <ModuleA/XIntroTest.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XIntrospection.hpp>
@@ -48,7 +46,6 @@
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/reflection/XIdlReflection.hpp>
//#include <com/sun/star/registry/XSimpleRegistry.hpp>
#include <com/sun/star/registry/XImplementationRegistration.hpp>
#include <com/sun/star/lang/XComponent.hpp>