diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-06-04 23:25:40 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-06-04 23:26:57 +0900 |
commit | 54a908a003db858874d85ca528983882e85e5c2e (patch) | |
tree | 70ab2d33ee0073b5629e37ec068d4dfcc34eacaf | |
parent | 47e0df5cebc05576e55210c5dd408a6f3eb91700 (diff) |
nuke unused defines
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
21 files changed, 0 insertions, 71 deletions
diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx index b6878f0e4c5e..754630e5d93f 100644 --- a/connectivity/source/drivers/file/FStatement.cxx +++ b/connectivity/source/drivers/file/FStatement.cxx @@ -46,9 +46,6 @@ #include <tools/debug.hxx> #include <rtl/logfile.hxx> -#define THROW_SQL(x) \ - OTools::ThrowException(x,m_aStatementHandle,SQL_HANDLE_STMT,*this) - namespace connectivity { namespace file diff --git a/connectivity/source/drivers/hsqldb/HStorageAccess.cxx b/connectivity/source/drivers/hsqldb/HStorageAccess.cxx index b80deebee243..7877c583008e 100644 --- a/connectivity/source/drivers/hsqldb/HStorageAccess.cxx +++ b/connectivity/source/drivers/hsqldb/HStorageAccess.cxx @@ -45,7 +45,6 @@ using namespace ::com::sun::star::io; using namespace ::com::sun::star::lang; using namespace ::connectivity::hsqldb; -#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) ) #define ThrowException(env, type, msg) { \ env->ThrowNew(env->FindClass(type), msg); } diff --git a/connectivity/source/drivers/hsqldb/StorageFileAccess.cxx b/connectivity/source/drivers/hsqldb/StorageFileAccess.cxx index ce87529ceec4..2a276d9ba2a4 100644 --- a/connectivity/source/drivers/hsqldb/StorageFileAccess.cxx +++ b/connectivity/source/drivers/hsqldb/StorageFileAccess.cxx @@ -44,7 +44,6 @@ using namespace ::com::sun::star::io; using namespace ::com::sun::star::lang; using namespace ::connectivity::hsqldb; -#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) ) /*****************************************************************************/ /* exception macros */ diff --git a/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx b/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx index a222d52dcf2f..84cf3de94947 100644 --- a/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx +++ b/connectivity/source/drivers/hsqldb/StorageNativeInputStream.cxx @@ -56,7 +56,6 @@ using namespace ::com::sun::star::io; using namespace ::com::sun::star::lang; using namespace ::connectivity::hsqldb; -#define OUSTR(x) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(x) ) /*****************************************************************************/ /* exception macros */ diff --git a/connectivity/source/drivers/odbcbase/OStatement.cxx b/connectivity/source/drivers/odbcbase/OStatement.cxx index a1434336947f..396facf50790 100644 --- a/connectivity/source/drivers/odbcbase/OStatement.cxx +++ b/connectivity/source/drivers/odbcbase/OStatement.cxx @@ -54,18 +54,6 @@ using namespace ::comphelper; #define THROW_SQL(x) \ OTools::ThrowException(m_pConnection,x,m_aStatementHandle,SQL_HANDLE_STMT,*this) -#if OSL_DEBUG_LEVEL > 1 -#define DEBUG_THROW \ - try \ - { \ - THROW_SQL(nRetCode); \ - } \ - catch(const SQLException&) \ - { \ - OSL_FAIL("Exception in odbc caught"); \ - } -#endif - using namespace connectivity::odbc; diff --git a/connectivity/source/drivers/postgresql/pq_baseresultset.cxx b/connectivity/source/drivers/postgresql/pq_baseresultset.cxx index 180c3c60a261..0401c55f2805 100644 --- a/connectivity/source/drivers/postgresql/pq_baseresultset.cxx +++ b/connectivity/source/drivers/postgresql/pq_baseresultset.cxx @@ -110,8 +110,6 @@ using com::sun::star::beans::Property; namespace pq_sdbc_driver { -#define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) - static ::cppu::IPropertyArrayHelper & getResultSetPropertyArrayHelper() { static ::cppu::IPropertyArrayHelper *pArrayHelper; diff --git a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx index 8fde1d13fcb9..f6089cc01398 100644 --- a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx +++ b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx @@ -97,8 +97,6 @@ using com::sun::star::beans::XPropertySet; using com::sun::star::container::XNameAccess; -#define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) - namespace pq_sdbc_driver { diff --git a/connectivity/source/drivers/postgresql/pq_xcolumn.cxx b/connectivity/source/drivers/postgresql/pq_xcolumn.cxx index f16e9252fb00..3a46800fb73c 100644 --- a/connectivity/source/drivers/postgresql/pq_xcolumn.cxx +++ b/connectivity/source/drivers/postgresql/pq_xcolumn.cxx @@ -69,8 +69,6 @@ using com::sun::star::beans::XPropertySet; namespace pq_sdbc_driver { -#define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) - Column::Column( const ::rtl::Reference< RefCountedMutex > & refMutex, const Reference< com::sun::star::sdbc::XConnection > & connection, ConnectionSettings *pSettings) diff --git a/connectivity/source/drivers/postgresql/pq_xindex.cxx b/connectivity/source/drivers/postgresql/pq_xindex.cxx index 5c529e4e2683..11d7b421de12 100644 --- a/connectivity/source/drivers/postgresql/pq_xindex.cxx +++ b/connectivity/source/drivers/postgresql/pq_xindex.cxx @@ -109,8 +109,6 @@ using com::sun::star::sdbc::SQLException; namespace pq_sdbc_driver { -#define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) - Index::Index( const ::rtl::Reference< RefCountedMutex > & refMutex, const Reference< com::sun::star::sdbc::XConnection > & connection, ConnectionSettings *pSettings, diff --git a/connectivity/source/drivers/postgresql/pq_xindexcolumn.cxx b/connectivity/source/drivers/postgresql/pq_xindexcolumn.cxx index b51a795c9e65..ea9c196a853a 100644 --- a/connectivity/source/drivers/postgresql/pq_xindexcolumn.cxx +++ b/connectivity/source/drivers/postgresql/pq_xindexcolumn.cxx @@ -69,8 +69,6 @@ using com::sun::star::beans::XPropertySet; namespace pq_sdbc_driver { -#define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) - IndexColumn::IndexColumn( const ::rtl::Reference< RefCountedMutex > & refMutex, const Reference< com::sun::star::sdbc::XConnection > & connection, ConnectionSettings *pSettings ) diff --git a/connectivity/source/drivers/postgresql/pq_xkey.cxx b/connectivity/source/drivers/postgresql/pq_xkey.cxx index db9f2406f275..a89dc114e478 100644 --- a/connectivity/source/drivers/postgresql/pq_xkey.cxx +++ b/connectivity/source/drivers/postgresql/pq_xkey.cxx @@ -109,8 +109,6 @@ using com::sun::star::sdbc::SQLException; namespace pq_sdbc_driver { -#define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) - Key::Key( const ::rtl::Reference< RefCountedMutex > & refMutex, const Reference< com::sun::star::sdbc::XConnection > & connection, ConnectionSettings *pSettings, diff --git a/connectivity/source/drivers/postgresql/pq_xkeycolumn.cxx b/connectivity/source/drivers/postgresql/pq_xkeycolumn.cxx index 9ae9333e87bb..8d48711d0f50 100644 --- a/connectivity/source/drivers/postgresql/pq_xkeycolumn.cxx +++ b/connectivity/source/drivers/postgresql/pq_xkeycolumn.cxx @@ -69,8 +69,6 @@ using com::sun::star::beans::XPropertySet; namespace pq_sdbc_driver { -#define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) - KeyColumn::KeyColumn( const ::rtl::Reference< RefCountedMutex > & refMutex, const Reference< com::sun::star::sdbc::XConnection > & connection, ConnectionSettings *pSettings) diff --git a/connectivity/source/drivers/postgresql/pq_xtable.cxx b/connectivity/source/drivers/postgresql/pq_xtable.cxx index 606299e4f33d..e0eb97b03b7a 100644 --- a/connectivity/source/drivers/postgresql/pq_xtable.cxx +++ b/connectivity/source/drivers/postgresql/pq_xtable.cxx @@ -114,8 +114,6 @@ using com::sun::star::sdbc::SQLException; namespace pq_sdbc_driver { -#define ASCII_STR(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) - Table::Table( const ::rtl::Reference< RefCountedMutex > & refMutex, const Reference< com::sun::star::sdbc::XConnection > & connection, ConnectionSettings *pSettings) diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx index c81584052514..84a714894afa 100644 --- a/fpicker/source/office/iodlgimp.cxx +++ b/fpicker/source/office/iodlgimp.cxx @@ -71,24 +71,6 @@ static inline String GetViewOptUserItem( const SvtViewOptions& rOpt ) return String( aUserData ); } - -// defines for the style of the BrowseBox - -#define STYLE_MULTI_SELECTION \ - CNTVIEWSTYLE_NODE_BUTTONS | \ - CNTVIEWSTYLE_NODE_BUTTONS_AT_ROOT | \ - CNTVIEWSTYLE_SHOW_MESSAGES | \ - CNTVIEWSTYLE_SHOW_FOLDERS | \ - CNTVIEWSTYLE_NO_SMARTHIGHLIGHT | \ - CNTVIEWSTYLE_HIDE_OPENMENU | \ - CNTVIEWSTYLE_DEFAULT_APPEARANCE | \ - CNTVIEWSTYLE_SORT_BY_FOLDER - -#define STYLE_SINGLE_SELECTION \ - STYLE_MULTI_SELECTION | CNTVIEWSTYLE_SINGLE_SELECTION - -#define BOOL_NOT_INITIALIZE ((sal_Bool)2) - //***************************************************************************** // ResMgrHolder / SvtSimpleResId //***************************************************************************** diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx index 0432c11db480..f72caeb9d62e 100644 --- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx +++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx @@ -40,7 +40,6 @@ using ::rtl::OUString; using ::rtl::OUStringToOString; using ::rtl::OString; -#define OUSTR(x) OUString(RTL_CONSTASCII_USTRINGPARAM( x )) static sal_Bool hasOption(char const * szOption, int argc, char** argv); static rtl::OString getLD_LIBRARY_PATH(const rtl::ByteSequence & vendorData); diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx index 827c0a388b2f..f9bcc612bc64 100644 --- a/pyuno/source/module/pyuno.cxx +++ b/pyuno/source/module/pyuno.cxx @@ -38,8 +38,6 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XMaterialHolder.hpp> -#define TO_ASCII(x) OUStringToOString( x , RTL_TEXTENCODING_ASCII_US).getStr() - using rtl::OStringBuffer; using rtl::OUStringBuffer; using rtl::OUStringToOString; diff --git a/pyuno/source/module/pyuno_util.cxx b/pyuno/source/module/pyuno_util.cxx index ae645a7c32e4..06a22982e7c7 100644 --- a/pyuno/source/module/pyuno_util.cxx +++ b/pyuno/source/module/pyuno_util.cxx @@ -60,7 +60,6 @@ using com::sun::star::lang::XSingleServiceFactory; using com::sun::star::script::XTypeConverter; using com::sun::star::beans::XMaterialHolder; -#define USTR_ASCII(x) OUString( RTL_CONSTASCII_USTRINGPARAM( x ) ) namespace pyuno { PyRef ustring2PyUnicode( const OUString & str ) diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index d4e547b1473d..8d2cf8746f70 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -175,10 +175,6 @@ struct _DB_Column SV_IMPL_OP_PTRARR_SORT( SwInsDBColumns, SwInsDBColumnPtr ) -#define DBCOLUMN_CONFIG_VERSION1 1 -#define DBCOLUMN_CONFIG_VERSION DBCOLUMN_CONFIG_VERSION1 -#define DBCOLUMN_MAXDATA 5 - struct _DB_ColumnConfigData { SwInsDBColumns aDBColumns; diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx index 23b9b64c26bc..4f5a0c519b60 100644 --- a/vcl/unx/gtk/a11y/atklistener.cxx +++ b/vcl/unx/gtk/a11y/atklistener.cxx @@ -49,8 +49,6 @@ using namespace com::sun::star; -#define CSTRING_FROM_ANY(i) rtl::OUStringToOString( i.get< rtl::OUString >(), RTL_TEXTENCODING_UTF8 ).getStr() - AtkListener::AtkListener( AtkObjectWrapper* pWrapper ) : mpWrapper( pWrapper ) { if( mpWrapper ) diff --git a/xml2cmp/source/xcd/parse.cxx b/xml2cmp/source/xcd/parse.cxx index 454abb46d1ce..b05e48b6bd8d 100644 --- a/xml2cmp/source/xcd/parse.cxx +++ b/xml2cmp/source/xcd/parse.cxx @@ -46,12 +46,6 @@ // NOT FULLY DEFINED SERVICES - -#define AssertionOf(x) \ - {if (!(x)) {std::cerr << "Assertion failed: " << #x << __FILE__ << __LINE__ << std::endl; exit(3); }} - - - X2CParser::X2CParser( XmlElement & o_rDocumentData ) : // sFileName, nFileLine(0), diff --git a/xmloff/source/text/txtprhdl.cxx b/xmloff/source/text/txtprhdl.cxx index 240afeffeb07..3dab77fc9993 100644 --- a/xmloff/source/text/txtprhdl.cxx +++ b/xmloff/source/text/txtprhdl.cxx @@ -63,9 +63,6 @@ using namespace ::com::sun::star::style; using namespace ::com::sun::star::text; using namespace ::xmloff::token; - -#define CONSTASCII_USTRINGPARAM_CMP(s) s, sizeof(s)-1 - // --------------------------------------------------------------------------- SvXMLEnumMapEntry const pXML_HoriPos_Enum[] = |