mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1409635 (part 1) - Remove nsIPrefLocalizedString::setDataWithLength. r=froydnj.
It's unused.
This commit is contained in:
parent
78030c0e7b
commit
380feab757
@ -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
|
||||
//----------------------------------------------------------------------------
|
||||
|
@ -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++
|
||||
|
Loading…
Reference in New Issue
Block a user