diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-16 23:38:05 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-18 07:41:31 +0200 |
commit | e0c2dd693c012bba30feb4c1dd0c5b424b135e3e (patch) | |
tree | a80028feb096247f4a92571c52de79abd4751034 | |
parent | 094bab7f9097fba62800d3dd578bd42640d8c6e2 (diff) |
SalData::drainThreadAutoreleasePool() is unused
Change-Id: Idbb98b32ffc5970e236c9d319e0e8791b855e283
-rw-r--r-- | vcl/aqua/source/app/saldata.cxx | 25 | ||||
-rw-r--r-- | vcl/inc/aqua/saldata.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/ios/saldata.hxx | 1 | ||||
-rw-r--r-- | vcl/ios/source/app/saldata.cxx | 24 |
4 files changed, 0 insertions, 51 deletions
diff --git a/vcl/aqua/source/app/saldata.cxx b/vcl/aqua/source/app/saldata.cxx index 150314fa4030..dcbd350c33f7 100644 --- a/vcl/aqua/source/app/saldata.cxx +++ b/vcl/aqua/source/app/saldata.cxx @@ -105,31 +105,6 @@ void SalData::ensureThreadAutoreleasePool() } } -void SalData::drainThreadAutoreleasePool() -{ - NSAutoreleasePool* pPool = nil; - if( s_aAutoReleaseKey ) - { - pPool = reinterpret_cast<NSAutoreleasePool*>( osl_getThreadKeyData( s_aAutoReleaseKey ) ); - if( pPool ) - { - // osl_setThreadKeyData( s_aAutoReleaseKey, NULL ); - // [pPool release]; - [pPool drain]; - } - else - { - pPool = [[NSAutoreleasePool alloc] init]; - osl_setThreadKeyData( s_aAutoReleaseKey, pPool ); - } - } - else - { - OSL_FAIL( "no autorelease key" ); - } -} - - struct curs_ent { const char* pBaseName; diff --git a/vcl/inc/aqua/saldata.hxx b/vcl/inc/aqua/saldata.hxx index b7f3ad745a38..d26e616db700 100644 --- a/vcl/inc/aqua/saldata.hxx +++ b/vcl/inc/aqua/saldata.hxx @@ -105,7 +105,6 @@ public: NSCursor* getCursor( PointerStyle i_eStyle ); static void ensureThreadAutoreleasePool(); - static void drainThreadAutoreleasePool(); static NSStatusItem* getStatusItem(); }; diff --git a/vcl/inc/ios/saldata.hxx b/vcl/inc/ios/saldata.hxx index d461899802be..8163a6d2f510 100644 --- a/vcl/inc/ios/saldata.hxx +++ b/vcl/inc/ios/saldata.hxx @@ -86,7 +86,6 @@ public: ~SalData(); static void ensureThreadAutoreleasePool(); - static void drainThreadAutoreleasePool(); }; inline void SetSalData( SalData* pData ) { ImplGetSVData()->mpSalData = pData; } diff --git a/vcl/ios/source/app/saldata.cxx b/vcl/ios/source/app/saldata.cxx index b83bc78e2f82..cc02eca59428 100644 --- a/vcl/ios/source/app/saldata.cxx +++ b/vcl/ios/source/app/saldata.cxx @@ -89,28 +89,4 @@ void SalData::ensureThreadAutoreleasePool() } } -void SalData::drainThreadAutoreleasePool() -{ - NSAutoreleasePool* pPool = nil; - if( s_aAutoReleaseKey ) - { - pPool = reinterpret_cast<NSAutoreleasePool*>( osl_getThreadKeyData( s_aAutoReleaseKey ) ); - if( pPool ) - { - // osl_setThreadKeyData( s_aAutoReleaseKey, NULL ); - // [pPool release]; - [pPool drain]; - } - else - { - pPool = [[NSAutoreleasePool alloc] init]; - osl_setThreadKeyData( s_aAutoReleaseKey, pPool ); - } - } - else - { - OSL_FAIL( "no autorelease key" ); - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |