summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-16 23:38:05 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-18 07:41:31 +0200
commite0c2dd693c012bba30feb4c1dd0c5b424b135e3e (patch)
treea80028feb096247f4a92571c52de79abd4751034
parent094bab7f9097fba62800d3dd578bd42640d8c6e2 (diff)
SalData::drainThreadAutoreleasePool() is unused
Change-Id: Idbb98b32ffc5970e236c9d319e0e8791b855e283
-rw-r--r--vcl/aqua/source/app/saldata.cxx25
-rw-r--r--vcl/inc/aqua/saldata.hxx1
-rw-r--r--vcl/inc/ios/saldata.hxx1
-rw-r--r--vcl/ios/source/app/saldata.cxx24
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: */