From c8e25b9e67daf7c6902428a442ac19bf4306d5c3 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 1 Mar 2015 18:10:34 +0000 Subject: WinGui: Dropping more legacy code and moving some more UI only code up to the UI level. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6960 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../Utilities/GeneralUtilities.cs | 33 ---------------------- 1 file changed, 33 deletions(-) (limited to 'win/CS/HandBrake.ApplicationServices/Utilities') diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs b/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs index 7a790f7f9..d74a8f72a 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs @@ -17,8 +17,6 @@ namespace HandBrake.ApplicationServices.Utilities using System.Text; using System.Windows.Forms; - using HandBrake.ApplicationServices.Model; - /// /// A Set of Static Utilites /// @@ -143,37 +141,6 @@ namespace HandBrake.ApplicationServices.Utilities return logHeader; } - /// - /// Get a list of available DVD drives which are ready and contain DVD content. - /// - /// A List of Drives with their details - public static List GetDrives() - { - var drives = new List(); - DriveInfo[] theCollectionOfDrives = DriveInfo.GetDrives(); - int id = 0; - foreach (DriveInfo curDrive in theCollectionOfDrives) - { - if (curDrive.DriveType == DriveType.CDRom && curDrive.IsReady) - { - if (Directory.Exists(curDrive.RootDirectory + "VIDEO_TS") || - Directory.Exists(curDrive.RootDirectory + "BDMV")) - { - drives.Add( - new DriveInformation - { - Id = id, - VolumeLabel = curDrive.VolumeLabel, - RootDirectory = curDrive.RootDirectory.ToString() - }); - id++; - } - } - } - - return drives; - } - /// /// Return the standard log format line of text for a given log message /// -- cgit v1.2.3