Get rid of the unused function nameForCursorType()
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2011 20:19:21 +0000 (20:19 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2011 20:19:21 +0000 (20:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=73529

Patch by Benjamin Poulain <bpoulain@apple.com> on 2011-12-01
Reviewed by Joseph Pecoraro.

The function nameForCursorType was introduced in r63339 and has not been used anywhere
since that commit.

* WebCore.exp.in:
* platform/Cursor.cpp:
* platform/Cursor.h:

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

Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/platform/Cursor.cpp
Source/WebCore/platform/Cursor.h

index ad5b3037d49771150851f4b458d11f68f2bb6b1c..8290782c2def7bc7147a5a671cb4826920b7b7c6 100644 (file)
@@ -1,3 +1,17 @@
+2011-12-01  Benjamin Poulain  <bpoulain@apple.com>
+
+        Get rid of the unused function nameForCursorType()
+        https://bugs.webkit.org/show_bug.cgi?id=73529
+
+        Reviewed by Joseph Pecoraro.
+
+        The function nameForCursorType was introduced in r63339 and has not been used anywhere
+        since that commit.
+
+        * WebCore.exp.in:
+        * platform/Cursor.cpp:
+        * platform/Cursor.h:
+
 2011-12-01  Andreas Kling  <kling@webkit.org>
 
         CSSMutableStyleDeclaration: Unnecessary double hash lookup in construction.
 2011-12-01  Andreas Kling  <kling@webkit.org>
 
         CSSMutableStyleDeclaration: Unnecessary double hash lookup in construction.
index 990bb0a21aeabab435799c3ae341b9678f9198e7..b8003fd1c0f7b062b776f69a9af9cf0b18925d24 100644 (file)
@@ -540,7 +540,6 @@ __ZN7WebCore17HistoryController33restoreScrollPositionAndViewStateEv
 __ZN7WebCore17RegularExpressionC1ERKN3WTF6StringENS1_19TextCaseSensitivityE
 __ZN7WebCore17RegularExpressionD1Ev
 __ZN7WebCore17cacheDOMStructureEPNS_17JSDOMGlobalObjectEPN3JSC9StructureEPKNS2_9ClassInfoE
 __ZN7WebCore17RegularExpressionC1ERKN3WTF6StringENS1_19TextCaseSensitivityE
 __ZN7WebCore17RegularExpressionD1Ev
 __ZN7WebCore17cacheDOMStructureEPNS_17JSDOMGlobalObjectEPN3JSC9StructureEPKNS2_9ClassInfoE
-__ZN7WebCore17nameForCursorTypeENS_6Cursor4TypeE
 __ZN7WebCore17openTemporaryFileERKN3WTF6StringERi
 __ZN7WebCore18PlatformMouseEventC1EP7NSEventP6NSView
 __ZN7WebCore18PlatformStrategies26createLocalizationStrategyEv
 __ZN7WebCore17openTemporaryFileERKN3WTF6StringERi
 __ZN7WebCore18PlatformMouseEventC1EP7NSEventP6NSView
 __ZN7WebCore18PlatformStrategies26createLocalizationStrategyEv
index d1c5d2ede2cca32ac8127b791fd7b07ac8a86435..6c796cdf2694a1011cfe209b9b26618ebf9eea5e 100644 (file)
@@ -144,102 +144,6 @@ const Cursor& Cursor::fromType(Cursor::Type type)
     return pointerCursor();
 }
 
     return pointerCursor();
 }
 
-const char* nameForCursorType(Cursor::Type type)
-{
-    switch (type) {
-    case Cursor::Pointer:
-        return "Pointer";
-    case Cursor::Cross:
-        return "Cross";
-    case Cursor::Hand:
-        return "Hand";
-    case Cursor::IBeam:
-        return "IBeam";
-    case Cursor::Wait:
-        return "Wait";
-    case Cursor::Help:
-        return "Help";
-    case Cursor::EastResize:
-        return "EastResize";
-    case Cursor::NorthResize:
-        return "NorthResize";
-    case Cursor::NorthEastResize:
-        return "NorthEastResize";
-    case Cursor::NorthWestResize:
-        return "NorthWestResize";
-    case Cursor::SouthResize:
-        return "SouthResize";
-    case Cursor::SouthEastResize:
-        return "SouthEastResize";
-    case Cursor::SouthWestResize:
-        return "SouthWestResize";
-    case Cursor::WestResize:
-        return "WestResize";
-    case Cursor::NorthSouthResize:
-        return "NorthSouthResize";
-    case Cursor::EastWestResize:
-        return "EastWestResize";
-    case Cursor::NorthEastSouthWestResize:
-        return "NorthEastSouthWestResize";
-    case Cursor::NorthWestSouthEastResize:
-        return "NorthWestSouthEastResize";
-    case Cursor::ColumnResize:
-        return "ColumnResize";
-    case Cursor::RowResize:
-        return "RowResize";
-    case Cursor::MiddlePanning:
-        return "MiddlePanning";
-    case Cursor::EastPanning:
-        return "EastPanning";
-    case Cursor::NorthPanning:
-        return "NorthPanning";
-    case Cursor::NorthEastPanning:
-        return "NorthEastPanning";
-    case Cursor::NorthWestPanning:
-        return "NorthWestPanning";
-    case Cursor::SouthPanning:
-        return "SouthPanning";
-    case Cursor::SouthEastPanning:
-        return "SouthEastPanning";
-    case Cursor::SouthWestPanning:
-        return "SouthWestPanning";
-    case Cursor::WestPanning:
-        return "WestPanning";
-    case Cursor::Move:
-        return "Move";
-    case Cursor::VerticalText:
-        return "VerticalText";
-    case Cursor::Cell:
-        return "Cell";
-    case Cursor::ContextMenu:
-        return "ContextMenu";
-    case Cursor::Alias:
-        return "Alias";
-    case Cursor::Progress:
-        return "Progress";
-    case Cursor::NoDrop:
-        return "NoDrop";
-    case Cursor::Copy:
-        return "Copy";
-    case Cursor::None:
-        return "None";
-    case Cursor::NotAllowed:
-        return "NotAllowed";
-    case Cursor::ZoomIn:
-        return "ZoomIn";
-    case Cursor::ZoomOut:
-        return "ZoomOut";
-    case Cursor::Grab:
-        return "Grab";
-    case Cursor::Grabbing:
-        return "Grabbing";
-    case Cursor::Custom:
-        return "Custom";
-    }
-
-    return "ERROR";
-}
-
 #if USE(LAZY_NATIVE_CURSOR)
 
 Cursor::Cursor(Image* image, const IntPoint& hotSpot)
 #if USE(LAZY_NATIVE_CURSOR)
 
 Cursor::Cursor(Image* image, const IntPoint& hotSpot)
index 41aaa231adca997c0db22cd8735bce14e9735533..17337a0134c58b668236df0e13689f322434da1f 100644 (file)
@@ -187,7 +187,6 @@ namespace WebCore {
     };
 
     IntPoint determineHotSpot(Image*, const IntPoint& specifiedHotSpot);
     };
 
     IntPoint determineHotSpot(Image*, const IntPoint& specifiedHotSpot);
-    const char* nameForCursorType(Cursor::Type);
     
     const Cursor& pointerCursor();
     const Cursor& crossCursor();
     
     const Cursor& pointerCursor();
     const Cursor& crossCursor();