Bug 1358709 - Part 1: Remove nsIHangReport::GetScriptLineNo; r=billm

This is dead code, and removing it is harmless.
This commit is contained in:
Ehsan Akhgari 2017-04-22 00:49:54 -04:00
parent e0fcc0bc36
commit 561daa3a09
2 changed files with 0 additions and 14 deletions

View File

@ -160,7 +160,6 @@ public:
NS_IMETHOD GetHangType(uint32_t* aHangType) override;
NS_IMETHOD GetScriptBrowser(nsIDOMElement** aBrowser) override;
NS_IMETHOD GetScriptFileName(nsACString& aFileName) override;
NS_IMETHOD GetScriptLineNo(uint32_t* aLineNo) override;
NS_IMETHOD GetPluginName(nsACString& aPluginName) override;
@ -962,18 +961,6 @@ HangMonitoredProcess::GetScriptFileName(nsACString& aFileName)
return NS_OK;
}
NS_IMETHODIMP
HangMonitoredProcess::GetScriptLineNo(uint32_t* aLineNo)
{
MOZ_RELEASE_ASSERT(NS_IsMainThread());
if (mHangData.type() != HangData::TSlowScriptData) {
return NS_ERROR_NOT_AVAILABLE;
}
*aLineNo = mHangData.get_SlowScriptData().lineno();
return NS_OK;
}
NS_IMETHODIMP
HangMonitoredProcess::GetPluginName(nsACString& aPluginName)
{

View File

@ -32,7 +32,6 @@ interface nsIHangReport : nsISupports
// Only valid for SLOW_SCRIPT reports.
readonly attribute nsIDOMElement scriptBrowser;
readonly attribute ACString scriptFileName;
readonly attribute unsigned long scriptLineNo;
// For PLUGIN_HANGs, this field contains information about the plugin.
// Only valid for PLUGIN_HANG reports.