diff --git a/src/Privatezilla/Privatezilla/Settings/Updates/UpdatesSharing.cs b/src/Privatezilla/Privatezilla/Settings/Updates/UpdatesSharing.cs deleted file mode 100644 index a4c892e..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Updates/UpdatesSharing.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Updates -{ - internal class DisableUpdatesSharing : SettingBase - { - private const string SharingKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeliveryOptimization"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsUpdatesUpdateSharing; - } - - public override string Info() - { - return Properties.Resources.settingsUpdatesUpdateSharingInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(SharingKey, "DODownloadMode", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(SharingKey, "DODownloadMode", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - var RegKey = Registry.LocalMachine.OpenSubKey(@"Software\Policies\Microsoft\Windows\DeliveryOptimization", true); - RegKey.DeleteValue("DODownloadMode"); - - return true; - } - catch - { } - - return false; - } - - } -} \ No newline at end of file