VirtualBox

Changeset 74518 in vbox


Ignore:
Timestamp:
Sep 28, 2018 11:47:33 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Removed unused code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r74507 r74518  
    24382438        AssertPtr(pDrvAudioInst->pReg);
    24392439
    2440 #if 0 /** @todo r=bird: Don't use strlen to check for empty strings.  Don't use RTStrPrintf to do RTStrCopy work. */
    2441         char szDriver[64];
    2442         RTStrPrintf(szDriver, RT_ELEMENTS(szDriver), "%s", pDrvAudioInst->pReg->szName);
    2443         if (!strlen(szDriver))
    2444         {
    2445             RTStrPrintf(szDriver, RT_ELEMENTS(szDriver), "Untitled");
    2446             AssertFailed(); /* Should never happen. */
    2447         }
    2448 
    2449         RTStrPrintf(pStream->szName, RT_ELEMENTS(pStream->szName), "[%s] %s",
    2450                     szDriver, strlen(pCfgHost->szName) ? pCfgHost->szName : "<Untitled>");
    2451 #else
    24522440        Assert(pDrvAudioInst->pReg->szName[0] != '\0');
    24532441        RTStrPrintf(pStream->szName, RT_ELEMENTS(pStream->szName), "[%s] %s",
    24542442                    pDrvAudioInst->pReg->szName[0] != '\0' ? pDrvAudioInst->pReg->szName : "Untitled",
    24552443                    pCfgHost->szName[0] != '\0' ? pCfgHost->szName : "<Untitled>");
    2456 #endif
     2444
    24572445        pStream->enmDir = pCfgHost->enmDir;
    24582446
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette