From f146ddadf5cb12790e85dc09b42303a89fde44ab Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Tue, 22 Dec 2015 12:20:22 +0100 Subject: BASIC : Remove useless allocation operator overload Change-Id: I134cdbfe388347264a810bbfbff8b4f9f373e663 Reviewed-on: https://gerrit.libreoffice.org/20873 Tested-by: Jenkins Reviewed-by: Arnaud Versini --- basic/source/classes/sb.cxx | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'basic') 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 ) -- cgit