Remove unused functions.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Feb 2014 02:11:51 +0000 (02:11 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Feb 2014 02:11:51 +0000 (02:11 +0000)
* runtime/RegExpConstructor.cpp:
(JSC::RegExpConstructor::getOwnPropertySlot):
* runtime/RegExpObject.cpp:

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/RegExpConstructor.cpp
Source/JavaScriptCore/runtime/RegExpObject.cpp

index 025fcb1..5d55e82 100644 (file)
@@ -1,3 +1,11 @@
+2014-02-05  Anders Carlsson  <andersca@apple.com>
+
+        Remove unused functions.
+
+        * runtime/RegExpConstructor.cpp:
+        (JSC::RegExpConstructor::getOwnPropertySlot):
+        * runtime/RegExpObject.cpp:
+
 2014-02-05  Oliver Hunt  <oliver@apple.com>
 
         Change custom getter signature to make the base reference an object pointer
index 86b4d53..2999b01 100644 (file)
@@ -157,11 +157,6 @@ bool RegExpConstructor::getOwnPropertySlot(JSObject* object, ExecState* exec, Pr
 {
     return getStaticValueSlot<RegExpConstructor, InternalFunction>(exec, ExecState::regExpConstructorTable(exec->vm()), jsCast<RegExpConstructor*>(object), propertyName, slot);
 }
-
-static inline RegExpConstructor* asRegExpConstructor(EncodedJSValue value)
-{
-    return jsCast<RegExpConstructor*>(JSValue::decode(value));
-}
     
 EncodedJSValue regExpConstructorDollar1(ExecState* exec, JSObject* slotBase, EncodedJSValue, PropertyName)
 {
index 6925462..7f3e44b 100644 (file)
@@ -155,11 +155,6 @@ bool RegExpObject::defineOwnProperty(JSObject* object, ExecState* exec, Property
     return Base::defineOwnProperty(object, exec, propertyName, descriptor, shouldThrow);
 }
 
-static inline RegExpObject* asRegExpObject(EncodedJSValue value)
-{
-    return jsCast<RegExpObject*>(JSValue::decode(value));
-}
-
 EncodedJSValue regExpObjectGlobal(ExecState*, JSObject* slotBase, EncodedJSValue, PropertyName)
 {
     return JSValue::encode(jsBoolean(asRegExpObject(slotBase)->regExp()->global()));