void RemoveUnusedReferences(Localize cmp) { cmp.TranslatedObjects.RemoveAll(x => !IsUsingReference(LocalizationManager.GetTermData(cmp.Term), x) && !IsUsingReference(LocalizationManager.GetTermData(cmp.SecondaryTerm), x)); if (cmp.TranslatedObjects.Count != cmp.mAssetDictionary.Count) { cmp.UpdateAssetDictionary(); } }