Skip to content

Commit

Permalink
Removal of Unused code in format converters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arunkumar-Karri committed Feb 8, 2013
1 parent 76e06f5 commit 82b1afb
Showing 1 changed file with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,7 @@ GETCONVERTER pfGetConverter;

extern "C" __declspec(dllexport) HRESULT GetDBCConverter( CDBCConverterBase*& ouDBCConverter, eBUS_TYPE eBusType )
{
HMODULE hModule = LoadLibrary("CANdbLibDriver.dll");
if( NULL != hModule )
{
pfGetConverter = (GETCONVERTER)GetProcAddress(hModule, "GetConverter");
if(pfGetConverter == NULL)
{
ouDBCConverter = new CDBFConverter(eBusType);
}
else
{
pfGetConverter(ouDBCConverter, eBusType);
}
}
else
{
ouDBCConverter = new CDBFConverter(eBusType);
}
ouDBCConverter = new CDBFConverter(eBusType);

return S_OK;
}

0 comments on commit 82b1afb

Please sign in to comment.