--- a/menufw/hierarchynavigator/hnmetadatamodel/src/hnmdlocalization.cpp Tue May 25 12:29:32 2010 +0300
+++ b/menufw/hierarchynavigator/hnmetadatamodel/src/hnmdlocalization.cpp Wed Jun 09 09:29:04 2010 +0300
@@ -119,7 +119,6 @@
{
TInt count = iInternalLocalization.Count();
const CHnMdLocalizationElement* element = NULL;
-
for ( TInt i = 0; i < count; i++ )
{
const CHnMdLocalizationElement* tmp = iInternalLocalization[i];
@@ -129,21 +128,6 @@
break;
}
}
- if( !element )
- {
- count = iDynamicLocalization.Count();
-
- for ( TInt i = 0; i < count; i++ )
- {
- const CHnMdLocalizationElement* tmp = iDynamicLocalization[i];
- if ( !tmp->Namespace().Compare( aNamespace) )
- {
- element = tmp;
- break;
- }
- }
- }
-
return element;
}
@@ -161,13 +145,6 @@
//
CHnMdLocalization::~CHnMdLocalization()
{
- iDynamicLocalization.ResetAndDestroy();
- for( TInt i( 0 ); i < iDynamicOffset.Count(); i++ )
- {
- iCoeEnv->DeleteResourceFile( iDynamicOffset[i] );
- }
- iDynamicOffset.Close();
-
iInternalLocalization.ResetAndDestroy();
for( TInt i( 0 ); i < iInternalOffset.Count(); i++ )
{
@@ -179,42 +156,6 @@
// ---------------------------------------------------------------------------
//
// ---------------------------------------------------------------------------
-//
-void CHnMdLocalization::ReloadResourceFilesL()
- {
- for( TInt i( 0 ); i < iDynamicLocalization.Count(); i++ )
- {
- iDynamicLocalization[i]->LocateLanguageFileL();
- if( iDynamicLocalization[i]->SourcePath() )
- {
- TInt offset( 0 );
- TRAPD( err, offset = iCoeEnv->AddResourceFileL(
- *(iDynamicLocalization[i]->SourcePath()) ) );
- if ( !err )
- {
- iDynamicOffset.AppendL( offset );
- }
- }
- }
- }
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-void CHnMdLocalization::ReleaseResourceFiles()
- {
- iDynamicLocalization.ResetAndDestroy();
- for( TInt i( 0 ); i < iDynamicOffset.Count(); i++ )
- {
- iCoeEnv->DeleteResourceFile( iDynamicOffset[i] );
- }
- iDynamicOffset.Reset();
- }
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
//
void CHnMdLocalization::AppendElementL( CHnMdLocalizationElement* aElement )
{
@@ -231,19 +172,6 @@
}
}
}
- else
- {
- iDynamicLocalization.AppendL( aElement );
- if( IsResourceFile (aElement->Source()) )
- {
- TInt offset( 0 );
- TRAPD( err, offset = iCoeEnv->AddResourceFileL( *(aElement->SourcePath()) ) );
- if ( !err )
- {
- iDynamicOffset.AppendL( offset );
- }
- }
- }
}
// ---------------------------------------------------------------------------