Skip to content

Commit 850f924

Browse files
authored
Remove valid adapters map because it's not used (#218)
1 parent f0cc191 commit 850f924

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Tools/WinMLRunner/src/Run.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ HRESULT CreateSession(LearningModelSession& session, IDirect3DDevice& winrtDevic
190190

191191
THROW_IF_FAILED(spFactory->GetAdapterList(dxGUIDs, ARRAYSIZE(dxGUIDs), spAdapterList.put()));
192192

193-
std::map<int, com_ptr<IDXCoreAdapter>> validAdapters;
194193
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
195194
std::string adapterNameStr = converter.to_bytes(adapterName);
196195
com_ptr<IDXCoreAdapter> spAdapter = nullptr;
@@ -213,7 +212,6 @@ HRESULT CreateSession(LearningModelSession& session, IDirect3DDevice& winrtDevic
213212
if (isHardware)
214213
{
215214
printf("Description: %s\n", driverDescription);
216-
validAdapters[i] = currAdapter;
217215
}
218216
if (!adapterName.empty() && !chosenAdapterFound)
219217
{

0 commit comments

Comments
 (0)