Supprimer le code inutilisé
This commit is contained in:
@@ -332,38 +332,6 @@ public class Device
|
||||
}
|
||||
}
|
||||
|
||||
/* *
|
||||
* Static method to create and manage a common.Device instance, handling file existence.
|
||||
*
|
||||
* @param dirName Directory where to put files (.adept)
|
||||
* @param hobbesVersion Hobbes (client version) to set
|
||||
* @param randomSerial Create a random serial (new device each time) or not (serial computed from machine specs)
|
||||
* @return A new or existing common.Device instance.
|
||||
* @throws DeviceException if directory creation or file operations fail.
|
||||
* @ param processor Instance of DRMProcessor
|
||||
*/
|
||||
// public static Device createDevice( String dirName, String hobbesVersion, boolean randomSerial )
|
||||
// throws NoSuchAlgorithmException, UnknownHostException
|
||||
// {
|
||||
// // TODO: this can probably be moved to the device constructor, eliminating the need for
|
||||
// // a factory method.
|
||||
// Path dirPath = Paths.get( dirName );
|
||||
// if (!Files.exists( dirPath ))
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// Files.createDirectories( dirPath ); // mkdir_p equivalent
|
||||
// }
|
||||
// catch (IOException e)
|
||||
// {
|
||||
// throw new DeviceException( DeviceException.DEV_MKPATH, "Unable to create directory: " + dirName, e );
|
||||
// }
|
||||
// }
|
||||
// return new Device( dirPath.resolve( "device.xml" ),
|
||||
// dirPath.resolve( "devicesalt" ),
|
||||
// hobbesVersion, randomSerial );
|
||||
// }
|
||||
|
||||
/**
|
||||
* Returns the device key.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user