mirror of
https://github.com/soukoku/ntwain.git
synced 2025-07-15 20:05:09 +08:00
Remove Unneeded Code
This commit is contained in:
parent
d3bd1db863
commit
ee417b7377
@ -21,7 +21,6 @@ namespace NTwain
|
|||||||
{
|
{
|
||||||
if (source == null) { throw new ArgumentNullException("source"); }
|
if (source == null) { throw new ArgumentNullException("source"); }
|
||||||
_source = source;
|
_source = source;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -38,9 +37,7 @@ namespace NTwain
|
|||||||
using (TWCapability cap = new TWCapability(capabilityId))
|
using (TWCapability cap = new TWCapability(capabilityId))
|
||||||
{
|
{
|
||||||
cap.ContainerType = ContainerType.OneValue;
|
cap.ContainerType = ContainerType.OneValue;
|
||||||
|
|
||||||
var rc = _source.DGControl.Capability.QuerySupport(cap);
|
var rc = _source.DGControl.Capability.QuerySupport(cap);
|
||||||
|
|
||||||
if (rc == ReturnCode.Success)
|
if (rc == ReturnCode.Success)
|
||||||
{
|
{
|
||||||
var read = CapabilityReader.ReadValue(cap);
|
var read = CapabilityReader.ReadValue(cap);
|
||||||
@ -49,8 +46,6 @@ namespace NTwain
|
|||||||
{
|
{
|
||||||
retVal = read.OneValue.ConvertToEnum<QuerySupports>();
|
retVal = read.OneValue.ConvertToEnum<QuerySupports>();
|
||||||
}
|
}
|
||||||
|
|
||||||
//ICapWrapper<Int64> cw = new CapWrapper<Int64>(_source, capabilityId, ValueExtensions.ConvertToEnum<Int64>, false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return retVal;
|
return retVal;
|
||||||
|
Loading…
Reference in New Issue
Block a user