Remove unused local functions uncovered by MSVC /W4
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Jul 2007 04:52:42 +0000 (04:52 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Jul 2007 04:52:42 +0000 (04:52 +0000)
Reviewed by John and Oliver.

* platform/win/SearchPopupMenuWin.cpp:
* rendering/RenderText.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23902 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/win/SearchPopupMenuWin.cpp
WebCore/rendering/RenderText.cpp

index 39a077980af73e9b8fb26422b2f55b0edb280b07..52143ae2988734cf114fd83263e7b48a8bd89b81 100644 (file)
@@ -1,5 +1,14 @@
 2007-06-30  Adam Roben  <aroben@apple.com>
 
+        Remove unused local functions uncovered by MSVC /W4
+
+        Reviewed by John and Oliver.
+
+        * platform/win/SearchPopupMenuWin.cpp:
+        * rendering/RenderText.cpp:
+
+2007-06-29  Adam Roben  <aroben@apple.com>
+
         Don't take the address of temporary values to appease MSVC /W4
 
         Reviewed by Oliver.
index 534630fc1cd74947fe32d232271e7516859324ff..d16ffa6649cd4434cbdf562e089fc2710e375618 100644 (file)
@@ -30,11 +30,6 @@ SearchPopupMenu::SearchPopupMenu(PopupMenuClient* client)
 {
 }
 
-static String autosaveKey(const String& name)
-{
-    return String();
-}
-
 bool SearchPopupMenu::enabled()
 {
     // FIXME: <rdar://problem/5057218> Reenable "recent searches" search field menu when menu is fully implemented
index 524c69c05e4db0848861b95c31e28beefac8f4cf..2f0395bd68d9702a38dab1ea628b875153c29952 100644 (file)
@@ -273,32 +273,6 @@ VisiblePosition RenderText::positionForCoordinates(int x, int y)
     return VisiblePosition(element(), lastBoxAbove ? lastBoxAbove->m_start + lastBoxAbove->m_len : 0, DOWNSTREAM);
 }
 
-#if __GNUC__
-static RenderObject* firstRendererOnNextLine(InlineBox* box) __attribute__ ((unused));
-#endif
-static RenderObject* firstRendererOnNextLine(InlineBox* box)
-{
-    if (!box)
-        return 0;
-
-    RootInlineBox* root = box->root();
-    if (!root)
-        return 0;
-
-    if (root->endsWithBreak())
-        return 0;
-
-    RootInlineBox* nextRoot = root->nextRootBox();
-    if (!nextRoot)
-        return 0;
-
-    InlineBox* firstChild = nextRoot->firstChild();
-    if (!firstChild)
-        return 0;
-
-    return firstChild->object();
-}
-
 static RenderObject* lastRendererOnPrevLine(InlineBox* box)
 {
     if (!box)