diff -r 6df133bd92e1 -r 075425b8d9a4 radioengine/utils/src/cradioenginetls.cpp --- a/radioengine/utils/src/cradioenginetls.cpp Fri Jun 04 10:21:36 2010 +0100 +++ b/radioengine/utils/src/cradioenginetls.cpp Fri Jun 11 13:38:32 2010 +0300 @@ -42,11 +42,11 @@ // // --------------------------------------------------------------------------- // -void CRadioEngineTls::InitializeL( CCoeEnv* aEnv, RFs* aFs ) +void CRadioEngineTls::InitializeL( RFs* aFs ) { if ( !UserSvr::DllTls( KUidRadioEngineTls ) ) { - CRadioEngineTls* self = new ( ELeave ) CRadioEngineTls( aEnv, aFs ); + CRadioEngineTls* self = new ( ELeave ) CRadioEngineTls( aFs ); CleanupStack::PushL( self ); self->ConstructL(); User::LeaveIfError( UserSvr::DllSetTls( KUidRadioEngineTls, self ) ); @@ -59,9 +59,8 @@ // // --------------------------------------------------------------------------- // -CRadioEngineTls::CRadioEngineTls( CCoeEnv* aEnv, RFs* aFs ) - : iEnv( aEnv ) - , iFs( aFs ) +CRadioEngineTls::CRadioEngineTls( RFs* aFs ) + : iFs( aFs ) { } @@ -72,18 +71,14 @@ // void CRadioEngineTls::ConstructL() { - if ( !iEnv ) - { - iEnv = CCoeEnv::Static(); - } - - if ( !iFs ) + if ( !iFs || !iFs->Handle() ) { iFsOwned = ETrue; iFs = new ( ELeave ) RFs; User::LeaveIfError( iFs->Connect() ); } + #ifdef LOGGING_ENABLED iLogger = CRadioEngineLogger::NewL( *iFs ); #endif // LOGGING_ENABLED @@ -126,16 +121,6 @@ // --------------------------------------------------------------------------- -// Return the eikon environment -// --------------------------------------------------------------------------- -// -CCoeEnv* CRadioEngineTls::Env() - { - return CRadioEngineTls::Instance().iEnv; - } - - -// --------------------------------------------------------------------------- // Returns the file server session // --------------------------------------------------------------------------- //