public static void RemoveProfile(PvPProfile profile) { if (profile != null && Profiles.GetValue(profile.Owner) == profile && Profiles.Remove(profile.Owner)) { profile.OnRemoved(); } }
public static void RemoveProfile(PvPProfile profile) { if (!Profiles.ContainsKey(profile.Owner)) { return; } Profiles.Remove(profile.Owner); profile.OnRemoved(); }