summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2015-12-22 12:20:22 +0100
committerArnaud Versini <arnaud.versini@libreoffice.org>2015-12-30 18:27:27 +0000
commitf146ddadf5cb12790e85dc09b42303a89fde44ab (patch)
tree10746367b53b892e53af9a811580b722313c682b /basic
parent5ff0c0c283217fdb87f78e1f06c90db0af16b59f (diff)
BASIC : Remove useless allocation operator overload
Change-Id: I134cdbfe388347264a810bbfbff8b4f9f373e663 Reviewed-on: https://gerrit.libreoffice.org/20873 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sb.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index 745f4b30af7f..60d2b02d7062 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -1014,21 +1014,6 @@ StarBASIC::~StarBASIC()
clearUnoMethodsForBasic( this );
}
-// Override new() operator, so that everyone can create a new instance
-void* StarBASIC::operator new( size_t n )
-{
- if( n < sizeof( StarBASIC ) )
- {
- n = sizeof( StarBASIC );
- }
- return ::operator new( n );
-}
-
-void StarBASIC::operator delete( void* p )
-{
- ::operator delete( p );
-}
-
void StarBASIC::implClearDependingVarsOnDelete( StarBASIC* pDeletedBasic )
{
if( this != pDeletedBasic )