summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-26 10:18:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-27 09:36:53 +0100
commitaa753f01ba4631614bb88ee7d3a3e6b222208b3e (patch)
treec8b168e8e0619c387d30f206848ec30ca7238a00 /basic
parent2ea2860ba56231d989c5e1b8f87392921bc2a8db (diff)
-Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbxmod.cxx7
-rw-r--r--basic/source/runtime/methods.cxx1
-rw-r--r--basic/source/runtime/stdobj.cxx5
-rw-r--r--basic/source/runtime/stdobj1.cxx1
-rw-r--r--basic/source/sbx/sbxform.cxx6
5 files changed, 1 insertions, 19 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index aa53f97ad570..7592943d77a5 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -55,13 +55,6 @@
using namespace com::sun::star;
-// for the bsearch
-#ifdef WNT
-#define CDECL _cdecl
-#endif
-#if defined(UNX)
-#define CDECL
-#endif
#ifdef UNX
#include <sys/resource.h>
#endif
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index a7ad6d56e5b4..211618a4b544 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -397,7 +397,6 @@ RTLFUNC(ChrW)
#ifdef UNX
-#define _MAX_PATH 260
#define _PATH_INCR 250
#endif
diff --git a/basic/source/runtime/stdobj.cxx b/basic/source/runtime/stdobj.cxx
index 1e882c244f50..752e6cd5b854 100644
--- a/basic/source/runtime/stdobj.cxx
+++ b/basic/source/runtime/stdobj.cxx
@@ -44,10 +44,6 @@
#define _RWMASK 0x0F00 // mask for R/W-bits
#define _TYPEMASK 0xF000 // mask for the entry's type
-#define _READ 0x0100 // can be read
-#define _BWRITE 0x0200 // can be used as Lvalue
-#define _LVALUE _BWRITE // can be used as Lvalue
-#define _READWRITE 0x0300 // both
#define _OPT 0x0400 // parameter is optional
#define _CONST 0x0800 // property is const
#define _METHOD 0x3000
@@ -58,7 +54,6 @@
#define _LFUNCTION 0x1300 // mask for function which also works as Lvalue
#define _SUB 0x2100
#define _ROPROP 0x4100 // mask Read Only-Property
-#define _WOPROP 0x4200 // mask Write Only-Property
#define _RWPROP 0x4300 // mask Read/Write-Property
#define _CPROP 0x4900 // mask for constant
diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx
index 5cd8153b1dab..20a1a851b5b2 100644
--- a/basic/source/runtime/stdobj1.cxx
+++ b/basic/source/runtime/stdobj1.cxx
@@ -30,7 +30,6 @@
#define ATTR_IMP_ITALIC 5
#define ATTR_IMP_STRIKETHROUGH 6
#define ATTR_IMP_UNDERLINE 7
-#define ATTR_IMP_WEIGHT 8
#define ATTR_IMP_SIZE 9
#define ATTR_IMP_NAME 10
diff --git a/basic/source/sbx/sbxform.cxx b/basic/source/sbx/sbxform.cxx
index c0e23ff868eb..de96b62ecd53 100644
--- a/basic/source/sbx/sbxform.cxx
+++ b/basic/source/sbx/sbxform.cxx
@@ -46,9 +46,6 @@ COMMENT: Visual-Basic treats the following (invalid) format-strings
#define _NO_DIGIT -1
-#define MAX_NO_OF_EXP_DIGITS 5
- // +4 because of the value range: between -308 and +308
- // +1 for closing 0
#define MAX_NO_OF_DIGITS DBL_DIG
#define MAX_DOUBLE_BUFFER_LENGTH MAX_NO_OF_DIGITS + 9
// +1 for leading sign
@@ -83,7 +80,6 @@ COMMENT: Visual-Basic treats the following (invalid) format-strings
// decimal point for floating-point-numbers.
// all format-strings are compatible to Visual-Basic:
#define GENERALNUMBER_FORMAT "0.############"
-#define CURRENCY_FORMAT "@$0.00;@($0.00)"
#define FIXED_FORMAT "0.00"
#define STANDARD_FORMAT "@0.00"
#define PERCENT_FORMAT "0.00%"
@@ -980,7 +976,7 @@ OUString SbxBasicFormater::BasicFormat( double dNumber, OUString sFormatStrg )
}
if( sFormatStrg.equalsIgnoreAsciiCase( BASICFORMAT_CURRENCY ) )
{
- sFormatStrg = sCurrencyFormatStrg; // old: CURRENCY_FORMAT;
+ sFormatStrg = sCurrencyFormatStrg;
}
if( sFormatStrg.equalsIgnoreAsciiCase( BASICFORMAT_FIXED ) )
{