Reviewed by Darin Adler.
[WebKit-https.git] / JavaScriptGlue / UserObjectImp.cpp
index 6c1ad9d08a1be35f7e67b4388332c22c3f2eca2a..a341449c2c3fc3923fcdbe7974c58cf46c819588 100644 (file)
 
 const ClassInfo UserObjectImp::info = {"UserObject", 0, 0, 0};
 
-class UserObjectPrototypeImp : public UserObjectImp {
-  public:
-    UserObjectPrototypeImp();
-    static UserObjectPrototypeImp* GlobalUserObjectPrototypeImp();
-  private:
-    static UserObjectPrototypeImp* sUserObjectPrototypeImp;
-};
-
-UserObjectPrototypeImp* UserObjectPrototypeImp::sUserObjectPrototypeImp = 0;
-
-UserObjectPrototypeImp::UserObjectPrototypeImp()
-  : UserObjectImp()
-{
-}
-
-UserObjectPrototypeImp* UserObjectPrototypeImp::GlobalUserObjectPrototypeImp()
-{
-    if (!sUserObjectPrototypeImp)
-    {
-            sUserObjectPrototypeImp  = new UserObjectPrototypeImp();
-            static ProtectedPtr<UserObjectPrototypeImp> protectPrototype;
-    }
-    return sUserObjectPrototypeImp;
-}
-
-
-UserObjectImp::UserObjectImp(): JSObject(), fJSUserObject(0)
-{
-}
-
-UserObjectImp::UserObjectImp(JSUserObject* userObject) :
-    JSObject(UserObjectPrototypeImp::GlobalUserObjectPrototypeImp()),
-    fJSUserObject((JSUserObject*)userObject->Retain())
+UserObjectImp::UserObjectImp(JSUserObject* userObject)
+    : fJSUserObject((JSUserObject*)userObject->Retain())
 {
 }