Remove unused code
This commit is contained in:
parent
1bd9b55cf3
commit
f867fc1f51
@ -5,7 +5,6 @@
|
||||
|
||||
package de.ailis.usb4java;
|
||||
|
||||
|
||||
/**
|
||||
* Thrown when a USB device was not found by id.
|
||||
*
|
||||
|
||||
@ -35,31 +35,6 @@ public final class Usb4JavaRuntimeException extends RuntimeException
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param message
|
||||
* The error message.
|
||||
*/
|
||||
public Usb4JavaRuntimeException(final String message)
|
||||
{
|
||||
super("USB error: " + message);
|
||||
this.errorCode = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param errorCode
|
||||
* The error code.
|
||||
*/
|
||||
public Usb4JavaRuntimeException(final int errorCode)
|
||||
{
|
||||
super(String.format("USB error %d: %s", -errorCode,
|
||||
LibUSB.errorName(errorCode)));
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user