Bug 1409635 (part 1) - Remove nsIPrefLocalizedString::setDataWithLength. r=froydnj.

It's unused.
This commit is contained in:
Nicholas Nethercote 2017-10-18 16:39:52 +11:00
parent 78030c0e7b
commit 380feab757
2 changed files with 0 additions and 27 deletions

View File

@ -2279,8 +2279,6 @@ private:
NS_IMETHOD GetData(char16_t**) override;
NS_IMETHOD SetData(const char16_t* aData) override;
NS_IMETHOD SetDataWithLength(uint32_t aLength,
const char16_t* aData) override;
nsCOMPtr<nsISupportsString> mUnicodeString;
};
@ -3270,16 +3268,6 @@ nsPrefLocalizedString::SetData(const char16_t* aData)
return SetData(nsDependentString(aData));
}
NS_IMETHODIMP
nsPrefLocalizedString::SetDataWithLength(uint32_t aLength,
const char16_t* aData)
{
if (!aData) {
return SetData(EmptyString());
}
return SetData(Substring(aData, aLength));
}
//----------------------------------------------------------------------------
// nsRelativeFilePref
//----------------------------------------------------------------------------

View File

@ -32,21 +32,6 @@ interface nsIPrefLocalizedString : nsISupports
* @return wstring The string containing the data stored within this object.
*/
wstring toString();
/**
* Used to set the contents of this object.
*
* @param length The length of the string. This value should not include
* space for the null terminator, nor should it account for the
* size of a character. It should only be the number of
* characters for which there is space in the string.
* @param data The string data to be stored.
*
* @note
* This makes a copy of the string argument passed in.
*/
void setDataWithLength(in unsigned long length,
[size_is(length)] in wstring data);
};
%{C++