Remove Unneeded Code

This commit is contained in:
Gavin Rigsby 2023-11-08 11:21:14 -08:00
parent d3bd1db863
commit ee417b7377

View File

@ -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;