Web Inspector: Move the computation that results in UI strings from JSC to the Web...
[WebKit-https.git] / Source / JavaScriptCore / runtime / TypeSet.cpp
index b193005..238443d 100644 (file)
@@ -237,25 +237,6 @@ String TypeSet::leastCommonAncestor() const
 }
 
 #if ENABLE(INSPECTOR)
-PassRefPtr<Inspector::Protocol::Array<String>> TypeSet::allPrimitiveTypeNames() const
-{
-    RefPtr<Inspector::Protocol::Array<String>> seen = Inspector::Protocol::Array<String>::create();
-    if (m_seenTypes & TypeUndefined)
-        seen->addItem(ASCIILiteral("Undefined"));
-    if (m_seenTypes & TypeNull)
-        seen->addItem(ASCIILiteral("Null"));
-    if (m_seenTypes & TypeBoolean)
-        seen->addItem(ASCIILiteral("Boolean"));
-    if (m_seenTypes & TypeMachineInt)
-        seen->addItem(ASCIILiteral("Integer"));
-    if (m_seenTypes & TypeNumber)
-        seen->addItem(ASCIILiteral("Number"));
-    if (m_seenTypes & TypeString)
-        seen->addItem(ASCIILiteral("String"));
-
-    return seen.release();
-}
-
 PassRefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::StructureDescription>> TypeSet::allStructureRepresentations() const
 {
     RefPtr<Inspector::Protocol::Array<Inspector::Protocol::Runtime::StructureDescription>> description = Inspector::Protocol::Array<Inspector::Protocol::Runtime::StructureDescription>::create();