diff --git a/webshell/public/nsILinkHandler.h b/webshell/public/nsILinkHandler.h index 16c1d17f8cd6..31b51c184445 100644 --- a/webshell/public/nsILinkHandler.h +++ b/webshell/public/nsILinkHandler.h @@ -66,8 +66,7 @@ public: */ NS_IMETHOD OnOverLink(nsIFrame* aFrame, const nsString& aURLSpec, - const nsString& aTargetSpec, - nsIPostData* aPostData = 0) = 0; + const nsString& aTargetSpec) = 0; /** * Get the state of a link to a given absolute URL diff --git a/webshell/src/nsLinkHandler.cpp b/webshell/src/nsLinkHandler.cpp index 1bc59f9da792..ddd3d4023136 100644 --- a/webshell/src/nsLinkHandler.cpp +++ b/webshell/src/nsLinkHandler.cpp @@ -47,8 +47,7 @@ public: nsIPostData* aPostData = 0); NS_IMETHOD OnOverLink(nsIFrame* aFrame, const nsString& aURLSpec, - const nsString& aTargetSpec, - nsIPostData* aPostData = 0); + const nsString& aTargetSpec); NS_IMETHOD GetLinkState(const nsString& aURLSpec, nsLinkState& aState); void HandleLinkClickEvent(const nsString& aURLSpec, @@ -177,9 +176,7 @@ LinkHandlerImpl::OnLinkClick(nsIFrame* aFrame, NS_IMETHODIMP LinkHandlerImpl::OnOverLink(nsIFrame* aFrame, const nsString& aURLSpec, - const nsString& aTargetSpec, - nsIPostData* aPostData) - + const nsString& aTargetSpec) { return NS_OK; } @@ -189,21 +186,6 @@ LinkHandlerImpl::GetLinkState(const nsString& aURLSpec, nsLinkState& aState) { // XXX not yet implemented aState = eLinkState_Unvisited; - -#ifdef NS_DEBUG - if (aURLSpec.Equals("http://visited/")) { - aState = eLinkState_Visited; - } - else if (aURLSpec.Equals("http://out-of-date/")) { - aState = eLinkState_OutOfDate; - } - else if (aURLSpec.Equals("http://active/")) { - aState = eLinkState_Active; - } - else if (aURLSpec.Equals("http://hover/")) { - aState = eLinkState_Hover; - } -#endif return NS_OK; }