Bug 1362817 - Drop the DateTimeFormat::FormatTime(). r=m_kato

MozReview-Commit-ID: JuNaLYhWCHI

--HG--
extra : rebase_source : 9bc5379b6ebffdbeb60b24ec57ade115c4f40682
This commit is contained in:
Mantaroh Yoshinaga 2017-09-19 18:35:51 +09:00
parent 411c90a211
commit 6e075293a5
2 changed files with 0 additions and 16 deletions

View File

@ -32,16 +32,6 @@ DateTimeFormat::Initialize()
return NS_OK;
}
// performs a locale sensitive date formatting operation on the time_t parameter
/*static*/ nsresult
DateTimeFormat::FormatTime(const nsDateFormatSelector aDateFormatSelector,
const nsTimeFormatSelector aTimeFormatSelector,
const time_t aTimetTime,
nsAString& aStringOut)
{
return FormatPRTime(aDateFormatSelector, aTimeFormatSelector, (aTimetTime * PR_USEC_PER_SEC), aStringOut);
}
// performs a locale sensitive date formatting operation on the PRTime parameter
/*static*/ nsresult
DateTimeFormat::FormatPRTime(const nsDateFormatSelector aDateFormatSelector,

View File

@ -38,12 +38,6 @@ enum nsTimeFormatSelector : long
class DateTimeFormat {
public:
// performs a locale sensitive date formatting operation on the time_t parameter
static nsresult FormatTime(const nsDateFormatSelector aDateFormatSelector,
const nsTimeFormatSelector aTimeFormatSelector,
const time_t aTimetTime,
nsAString& aStringOut);
// performs a locale sensitive date formatting operation on the PRTime parameter
static nsresult FormatPRTime(const nsDateFormatSelector aDateFormatSelector,
const nsTimeFormatSelector aTimeFormatSelector,