Bug 461199 (Part 17) - Remove no longer needed code from webshell and docshell.

r=bz
sr=sicking
This commit is contained in:
Shawn Wilsher
2009-12-15 16:04:18 -08:00
parent c46c995f3c
commit 5b4014a8da
3 changed files with 1 additions and 32 deletions

View File

@@ -11345,30 +11345,6 @@ nsDocShell::OnLeaveLink()
return rv;
}
NS_IMETHODIMP
nsDocShell::GetLinkState(nsIURI* aLinkURI, nsLinkState& aState)
{
if (!aLinkURI) {
// No uri means not a link
aState = eLinkState_NotLink;
return NS_OK;
}
aState = eLinkState_Unvisited;
// no history, leave state unchanged
if (!mGlobalHistory)
return NS_OK;
PRBool isVisited;
NS_ENSURE_SUCCESS(mGlobalHistory->IsVisited(aLinkURI, &isVisited),
NS_ERROR_FAILURE);
if (isVisited)
aState = eLinkState_Visited;
return NS_OK;
}
//----------------------------------------------------------------------
// Web Shell Services API