From ee417b737787033e0a888fc8ec325fc6fc1a6e2f Mon Sep 17 00:00:00 2001 From: Gavin Rigsby Date: Wed, 8 Nov 2023 11:21:14 -0800 Subject: [PATCH] Remove Unneeded Code --- src/NTwain/Capabilities.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/NTwain/Capabilities.cs b/src/NTwain/Capabilities.cs index 0bf9e1d..fcc9f23 100644 --- a/src/NTwain/Capabilities.cs +++ b/src/NTwain/Capabilities.cs @@ -21,7 +21,6 @@ namespace NTwain { if (source == null) { throw new ArgumentNullException("source"); } _source = source; - } @@ -38,9 +37,7 @@ namespace NTwain using (TWCapability cap = new TWCapability(capabilityId)) { cap.ContainerType = ContainerType.OneValue; - var rc = _source.DGControl.Capability.QuerySupport(cap); - if (rc == ReturnCode.Success) { var read = CapabilityReader.ReadValue(cap); @@ -49,8 +46,6 @@ namespace NTwain { retVal = read.OneValue.ConvertToEnum(); } - - //ICapWrapper cw = new CapWrapper(_source, capabilityId, ValueExtensions.ConvertToEnum, false); } } return retVal;