diff --git a/layout/generic/nsImageMap.cpp b/layout/generic/nsImageMap.cpp
index f344fadaf689..06e5ae69aee9 100644
--- a/layout/generic/nsImageMap.cpp
+++ b/layout/generic/nsImageMap.cpp
@@ -84,7 +84,6 @@ public:
virtual void GetRect(nsIPresContext* aCX, nsRect& aRect) = 0;
virtual void GetShapeName(nsString& aResult) const = 0;
- void ToHTML(nsString& aResult);
void HasFocus(PRBool aHasFocus);
void GetHREF(nsString& aHref) const;
@@ -346,50 +345,6 @@ void Area::ParseCoords(const nsString& aSpec)
}
}
-void Area::ToHTML(nsString& aResult)
-{
- nsAutoString href, target, altText;
-
- if (mArea) {
- mArea->GetAttr(kNameSpaceID_None, nsHTMLAtoms::href, href);
- mArea->GetAttr(kNameSpaceID_None, nsHTMLAtoms::target, target);
- mArea->GetAttr(kNameSpaceID_None, nsHTMLAtoms::alt, altText);
- }
-
- aResult.Truncate();
- aResult.Append(NS_LITERAL_STRING("'));
-}
-
void Area::HasFocus(PRBool aHasFocus)
{
mHasFocus = aHasFocus;
diff --git a/layout/html/base/src/nsImageMap.cpp b/layout/html/base/src/nsImageMap.cpp
index f344fadaf689..06e5ae69aee9 100644
--- a/layout/html/base/src/nsImageMap.cpp
+++ b/layout/html/base/src/nsImageMap.cpp
@@ -84,7 +84,6 @@ public:
virtual void GetRect(nsIPresContext* aCX, nsRect& aRect) = 0;
virtual void GetShapeName(nsString& aResult) const = 0;
- void ToHTML(nsString& aResult);
void HasFocus(PRBool aHasFocus);
void GetHREF(nsString& aHref) const;
@@ -346,50 +345,6 @@ void Area::ParseCoords(const nsString& aSpec)
}
}
-void Area::ToHTML(nsString& aResult)
-{
- nsAutoString href, target, altText;
-
- if (mArea) {
- mArea->GetAttr(kNameSpaceID_None, nsHTMLAtoms::href, href);
- mArea->GetAttr(kNameSpaceID_None, nsHTMLAtoms::target, target);
- mArea->GetAttr(kNameSpaceID_None, nsHTMLAtoms::alt, altText);
- }
-
- aResult.Truncate();
- aResult.Append(NS_LITERAL_STRING("'));
-}
-
void Area::HasFocus(PRBool aHasFocus)
{
mHasFocus = aHasFocus;