summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/PresetService.cs33
1 files changed, 0 insertions, 33 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
index 14001040e..ea948344b 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
@@ -543,39 +543,6 @@ namespace HandBrakeWPF.Services.Presets
selectedPreset.IsSelected = true;
}
- public void SaveCategoryStates()
- {
- StringCollection expandedPresets = new StringCollection();
- foreach (IPresetObject presetObject in this.presets)
- {
- PresetDisplayCategory category = presetObject as PresetDisplayCategory;
- if (category != null && category.IsExpanded)
- {
- expandedPresets.Add(category.Category);
- }
- }
-
- this.userSettingService.SetUserSetting(UserSettingConstants.PresetExpandedStateList, expandedPresets);
- }
-
- public void LoadCategoryStates()
- {
- StringCollection expandedPresets = this.userSettingService.GetUserSetting<StringCollection>(UserSettingConstants.PresetExpandedStateList);
- if (expandedPresets == null || expandedPresets.Count == 0)
- {
- return;
- }
-
- foreach (IPresetObject presetObject in this.presets)
- {
- PresetDisplayCategory category = presetObject as PresetDisplayCategory;
- if (category != null && expandedPresets.Contains(category.Category))
- {
- category.IsExpanded = true;
- }
- }
- }
-
#endregion
#region Private Helpers