Skip to content

Commit 5a3821f

Browse files
committed
remove unused member var
1 parent 4a8b666 commit 5a3821f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

lib/DxcSupport/dxcapi.extval.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ class ExtValidationArgHelper {
174174
class ExternalValidationCompiler : public IDxcCompiler2, public IDxcCompiler3 {
175175
public:
176176
ExternalValidationCompiler(IMalloc *Malloc, IDxcValidator *OtherValidator,
177-
REFIID OtherCompilerIID, IUnknown *OtherCompiler)
178-
: Validator(OtherValidator), CompilerIID(OtherCompilerIID),
179-
Compiler(OtherCompiler), m_pMalloc(Malloc) {}
177+
IUnknown *OtherCompiler)
178+
: Validator(OtherValidator), Compiler(OtherCompiler), m_pMalloc(Malloc) {}
180179

181180
// IUnknown implementation
182181
DXC_MICROCOM_TM_ADDREF_RELEASE_IMPL()
@@ -203,7 +202,7 @@ class ExternalValidationCompiler : public IDxcCompiler2, public IDxcCompiler3 {
203202
// This can throw; do not leak C++ exceptions through COM method
204203
// calls.
205204
CComPtr<ExternalValidationCompiler> NewWrapper(
206-
Alloc(m_pMalloc, Validator, Iid, TempCompiler));
205+
Alloc(m_pMalloc, Validator, TempCompiler));
207206
return DoBasicQueryInterface<IDxcCompiler, IDxcCompiler2, IDxcCompiler3>(
208207
NewWrapper.p, Iid, ResultObject);
209208
} catch (...) {
@@ -314,7 +313,6 @@ class ExternalValidationCompiler : public IDxcCompiler2, public IDxcCompiler3 {
314313
// for the requested interface, which wraps the result of QueryInterface
315314
// on the compiler object. Compiler pointer is held as IUnknown and must
316315
// be upcast to the appropriate interface on use.
317-
IID CompilerIID;
318316
CComPtr<IUnknown> Compiler;
319317
DXC_MICROCOM_TM_REF_FIELDS()
320318

@@ -354,9 +352,8 @@ static HRESULT createCompilerWrapper(IMalloc *Malloc,
354352

355353
// Wrap compiler
356354
CComPtr<ExternalValidationCompiler> CompilerWrapper =
357-
ExternalValidationCompiler::Alloc(Malloc ? Malloc
358-
: DxcGetThreadMallocNoRef(),
359-
Validator, Riid, Compiler);
355+
ExternalValidationCompiler::Alloc(
356+
Malloc ? Malloc : DxcGetThreadMallocNoRef(), Validator, Compiler);
360357
return CompilerWrapper->QueryInterface(Riid, (void **)ResultObject);
361358
}
362359

0 commit comments

Comments
 (0)