radioengine/utils/src/cradioenginetls.cpp
branchGCC_SURGE
changeset 37 451b2e1545b2
parent 14 63aabac4416d
parent 28 075425b8d9a4
--- a/radioengine/utils/src/cradioenginetls.cpp	Fri Jun 11 16:24:13 2010 +0100
+++ b/radioengine/utils/src/cradioenginetls.cpp	Thu Jul 22 16:33:45 2010 +0100
@@ -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
 // ---------------------------------------------------------------------------
 //