2006-10-05 Eric Seidel <eric@eseidel.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Oct 2006 13:59:14 +0000 (13:59 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Oct 2006 13:59:14 +0000 (13:59 +0000)
        Reviewed by mjs.

        Removed dead code.
        Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs

        * WebCore.xcodeproj/project.pbxproj:
        * ksvg2/ecma/GlobalObject.cpp: Removed.
        * ksvg2/ecma/GlobalObject.h: Removed.

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

WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/ksvg2/ecma/GlobalObject.cpp [deleted file]
WebCore/ksvg2/ecma/GlobalObject.h [deleted file]

index 4ade3187e8a97276be23ef5886363b63aee9dab2..a627685dfb82b5c74aec3a0283c2dfa3fe19cc31 100644 (file)
@@ -1,3 +1,14 @@
+2006-10-05  Eric Seidel  <eric@eseidel.com>
+
+        Reviewed by mjs.
+
+        Removed dead code.
+        Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
+
+        * WebCore.xcodeproj/project.pbxproj:
+        * ksvg2/ecma/GlobalObject.cpp: Removed.
+        * ksvg2/ecma/GlobalObject.h: Removed.
+
 2006-10-05  Adam Roben  <aroben@apple.com>
 
         Reviewed by Maciej.
 2006-10-05  Adam Roben  <aroben@apple.com>
 
         Reviewed by Maciej.
index ed2bb4305ca5ad3e74b31257f180f2d48943aa5a..193f92e923cd46ddeea7d26c41d9e7140977cd09 100644 (file)
                A8C0F700089701F100BA5114 /* SVGRenderStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = SVGRenderStyle.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F701089701F100BA5114 /* SVGRenderStyleDefs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGRenderStyleDefs.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F702089701F100BA5114 /* SVGRenderStyleDefs.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = SVGRenderStyleDefs.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F700089701F100BA5114 /* SVGRenderStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = SVGRenderStyle.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F701089701F100BA5114 /* SVGRenderStyleDefs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGRenderStyleDefs.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F702089701F100BA5114 /* SVGRenderStyleDefs.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = SVGRenderStyleDefs.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
-               A8C0F7EE089701F300BA5114 /* GlobalObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GlobalObject.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
-               A8C0F7EF089701F300BA5114 /* GlobalObject.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = GlobalObject.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F7F5089701F300BA5114 /* SVGZoomEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGZoomEvent.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F7F6089701F300BA5114 /* SVGZoomEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = SVGZoomEvent.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F7FF089701F300BA5114 /* SVGAElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGAElement.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F7F5089701F300BA5114 /* SVGZoomEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGZoomEvent.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F7F6089701F300BA5114 /* SVGZoomEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = SVGZoomEvent.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                A8C0F7FF089701F300BA5114 /* SVGAElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGAElement.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
                        children = (
                                A8122C7B08D564B000844FA3 /* bindings */,
                                A8C0F6F2089701F100BA5114 /* css */,
                        children = (
                                A8122C7B08D564B000844FA3 /* bindings */,
                                A8C0F6F2089701F100BA5114 /* css */,
-                               A8C0F7E8089701F300BA5114 /* ecma */,
                                A8C0F7F1089701F300BA5114 /* events */,
                                A8C0F6EA089701F100BA5114 /* misc */,
                                A8C0F7FC089701F300BA5114 /* svg */,
                                A8C0F7F1089701F300BA5114 /* events */,
                                A8C0F6EA089701F100BA5114 /* misc */,
                                A8C0F7FC089701F300BA5114 /* svg */,
                        path = css;
                        sourceTree = "<group>";
                };
                        path = css;
                        sourceTree = "<group>";
                };
-               A8C0F7E8089701F300BA5114 /* ecma */ = {
-                       isa = PBXGroup;
-                       children = (
-                               A8C0F7EE089701F300BA5114 /* GlobalObject.cpp */,
-                               A8C0F7EF089701F300BA5114 /* GlobalObject.h */,
-                       );
-                       path = ecma;
-                       sourceTree = "<group>";
-               };
                A8C0F7F1089701F300BA5114 /* events */ = {
                        isa = PBXGroup;
                        children = (
                A8C0F7F1089701F300BA5114 /* events */ = {
                        isa = PBXGroup;
                        children = (
diff --git a/WebCore/ksvg2/ecma/GlobalObject.cpp b/WebCore/ksvg2/ecma/GlobalObject.cpp
deleted file mode 100644 (file)
index 5e39222..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
-    Copyright (C) 2002 David Faure <faure@kde.org>
-                  2004, 2005 Nikolas Zimmermann <wildfox@kde.org>
-
-    This file is part of the KDE project
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-    Boston, MA 02111-1307, USA.
-*/
-
-#include "config.h"
-#ifdef SVG_SUPPORT
-#include <kdom/core/Document.h>
-
-#include "GlobalObject.h"
-#include "Constructors.h"
-
-#include <ksvg2/data/EcmaConstants.h>
-#include <ksvg2/data/GlobalObject.lut.h>
-using namespace WebCore;
-
-/*
-@begin GlobalObject::s_hashTable 13
-# Constructors
- SVGException    GlobalObjectConstants::SVGException DontDelete|Function 1
- SVGLength        GlobalObjectConstants::SVGLength DontDelete|Function 1
- SVGAngle        GlobalObjectConstants::SVGAngle DontDelete|Function 1
- SVGColor        GlobalObjectConstants::SVGColor DontDelete|Function 1
- SVGUnitTypes    GlobalObjectConstants::SVGUnitTypes DontDelete|Function 1
- SVGTransform    GlobalObjectConstants::SVGTransform DontDelete|Function 1
- SVGPaint        GlobalObjectConstants::SVGPaint DontDelete|Function 1
- SVGGradientElement        GlobalObjectConstants::SVGGradientElement DontDelete|Function 1
- SVGPreserveAspectRatio        GlobalObjectConstants::SVGPreserveAspectRatio DontDelete|Function 1
- SVGZoomAndPan        GlobalObjectConstants::SVGZoomAndPan DontDelete|Function 1
- SVGMarkerElement    GlobalObjectConstants::SVGMarkerElement DontDelete|Function 1
-@end
-*/
-
-GlobalObject::GlobalObject(Document *doc) : GlobalObject(doc)
-{
-}
-
-GlobalObject::~GlobalObject()
-{
-}
-
-KJS::JSValue *GlobalObject::get(KJS::ExecState *exec, const KJS::Identifier &p) const
-{
-    KJS::JSValue *ret = GlobalObject::get(exec, p);
-    if(ret->type() != KJS::UndefinedType)
-        return ret;
-
-    const KJS::HashEntry *entry = KJS::Lookup::findEntry(&GlobalObject::s_hashTable, p);
-    if(entry)
-    {
-        switch(entry->value)
-        {
-            case GlobalObjectConstants::SVGException:
-                return getSVGExceptionConstructor(exec);
-            case GlobalObjectConstants::SVGLength:
-                return getSVGLengthConstructor(exec);
-            case GlobalObjectConstants::SVGAngle:
-                return getSVGAngleConstructor(exec);
-            case GlobalObjectConstants::SVGColor:
-                return getSVGColorConstructor(exec);
-            case GlobalObjectConstants::SVGPaint:
-                return getSVGPaintConstructor(exec);
-            case GlobalObjectConstants::SVGUnitTypes:
-                return getSVGUnitTypesConstructor(exec);
-            case GlobalObjectConstants::SVGTransform:
-                return getSVGTransformConstructor(exec);
-            case GlobalObjectConstants::SVGGradientElement:
-                return getSVGGradientElementConstructor(exec);
-            case GlobalObjectConstants::SVGPreserveAspectRatio:
-                return getSVGPreserveAspectRatioConstructor(exec);
-            case GlobalObjectConstants::SVGZoomAndPan:
-                return getSVGZoomAndPanConstructor(exec);
-            case GlobalObjectConstants::SVGMarkerElement:
-                return getSVGMarkerElementConstructor(exec);
-        }
-    }
-
-    // This isn't necessarily a bug. Some code uses if(!window.blah) window.blah=1
-    // But it can also mean something isn't loaded or implemented...
-    return KJS::jsUndefined();
-}
-
-// vim:ts=4:noet
-#endif // SVG_SUPPORT
-
diff --git a/WebCore/ksvg2/ecma/GlobalObject.h b/WebCore/ksvg2/ecma/GlobalObject.h
deleted file mode 100644 (file)
index 6ac27af..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-    Copyright (C) 2002 David Faure <faure@kde.org>
-                     2004, 2005 Nikolas Zimmermann <wildfox@kde.org>
-
-    This file is part of the KDE project
-
-    This program is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License version 2, as published by the Free Software Foundation.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this program; see the file COPYING.  If not, write to
-    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-    Boston, MA 02111-1307, USA.
-*/
-
-#ifndef GlobalObject_H
-#define GlobalObject_H
-#ifdef SVG_SUPPORT
-
-#include <kdom/ecma/GlobalObject.h>
-
-namespace WebCore
-{
-    class Document;
-    
-    // FIXME: This is all dead code.  This will need to be
-    // rolled into the Window object at some point (using the new idl binding method)
-    // This is left here only as example code for when the move occurs
-    
-    class GlobalObject : public GlobalObject
-    {
-    public:
-        GlobalObject(Document *doc);
-        virtual ~GlobalObject();
-
-        virtual KJS::JSValue *get(KJS::ExecState *exec, const KJS::Identifier &propertyName) const;
-
-        // EcmaScript specific stuff - only needed for GlobalObject
-        // You won't find it in "general" kdom ecma code...
-        static const struct KJS::HashTable s_hashTable;
-    };
-};
-
-#endif // SVG_SUPPORT
-#endif
-
-// vim:ts=4:noet