VirtualBox

Changeset 101926 in vbox for trunk/src/libs/xpcom18a4/xpcom


Ignore:
Timestamp:
Nov 7, 2023 10:30:05 AM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Remove some unused code, bugref:10545

Location:
trunk/src/libs/xpcom18a4/xpcom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/build/nsStringAPI.cpp

    r1 r101926  
    228228      CopyUTF8toUTF16(aSrc, aDest);
    229229      break;
    230     case NS_CSTRING_ENCODING_NATIVE_FILESYSTEM:
    231       NS_CopyNativeToUnicode(aSrc, aDest);
    232       break;
    233230    default:
    234231      return NS_ERROR_NOT_IMPLEMENTED;
     
    251248      CopyUTF16toUTF8(aSrc, aDest);
    252249      break;
    253     case NS_CSTRING_ENCODING_NATIVE_FILESYSTEM:
    254       NS_CopyUnicodeToNative(aSrc, aDest);
    255       break;
    256250    default:
    257251      return NS_ERROR_NOT_IMPLEMENTED;
  • trunk/src/libs/xpcom18a4/xpcom/string/public/nsStringAPI.h

    r11551 r101926  
    590590
    591591  /* Conversion between UTF-8 and UTF-16 is non-lossy. */
    592   NS_CSTRING_ENCODING_UTF8 = 1,
    593 
    594   /* Conversion from UTF-16 to the native filesystem charset may result in a
    595    * loss of information.  No attempt is made to protect against data loss in
    596    * this case.  The native filesystem charset applies to strings passed to
    597    * the "Native" method variants on nsIFile and nsILocalFile. */
    598   NS_CSTRING_ENCODING_NATIVE_FILESYSTEM = 2
     592  NS_CSTRING_ENCODING_UTF8 = 1
    599593};
    600594
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