From: abarth@webkit.org Date: Mon, 19 Sep 2011 22:53:04 +0000 (+0000) Subject: Remove APPLICATION_CACHE_DYNAMIC_ENTRIES and associated code X-Git-Tag: 070512121124~24123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2080bef089cfe13a70fe7b791fd5c864f7051916;p=profile%2Fivi%2Fwebkit-efl.git Remove APPLICATION_CACHE_DYNAMIC_ENTRIES and associated code https://bugs.webkit.org/show_bug.cgi?id=68407 Reviewed by Eric Seidel. As discussed on webkit-dev, no one appears to be using this code. * GNUmakefile.list.am: * UseJSC.cmake: * WebCore.gypi: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSBindingsAllInOne.cpp: * bindings/js/JSDOMApplicationCacheCustom.cpp: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95486 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index 20bc62d..f5ecdd2 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,21 @@ +2011-09-19 Adam Barth + + Remove APPLICATION_CACHE_DYNAMIC_ENTRIES and associated code + https://bugs.webkit.org/show_bug.cgi?id=68407 + + Reviewed by Eric Seidel. + + As discussed on webkit-dev, no one appears to be using this code. + + * GNUmakefile.list.am: + * UseJSC.cmake: + * WebCore.gypi: + * WebCore.pro: + * WebCore.vcproj/WebCore.vcproj: + * WebCore.xcodeproj/project.pbxproj: + * bindings/js/JSBindingsAllInOne.cpp: + * bindings/js/JSDOMApplicationCacheCustom.cpp: Removed. + 2011-09-19 Sheriff Bot Unreviewed, rolling out r95385 and r95457. diff --git a/Source/WebCore/GNUmakefile.list.am b/Source/WebCore/GNUmakefile.list.am index ae507e9..3483737 100644 --- a/Source/WebCore/GNUmakefile.list.am +++ b/Source/WebCore/GNUmakefile.list.am @@ -685,7 +685,6 @@ webcore_sources += \ Source/WebCore/bindings/js/JSCustomXPathNSResolver.h \ Source/WebCore/bindings/js/JSDictionary.cpp \ Source/WebCore/bindings/js/JSDictionary.h \ - Source/WebCore/bindings/js/JSDOMApplicationCacheCustom.cpp \ Source/WebCore/bindings/js/JSDOMBinding.cpp \ Source/WebCore/bindings/js/JSDOMBinding.h \ Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp \ diff --git a/Source/WebCore/UseJSC.cmake b/Source/WebCore/UseJSC.cmake index 77f2640..5061426 100644 --- a/Source/WebCore/UseJSC.cmake +++ b/Source/WebCore/UseJSC.cmake @@ -211,12 +211,6 @@ IF (ENABLE_SHARED_WORKERS) ) ENDIF () -IF (ENABLE_OFFLINE_WEB_APPLICATIONS) - LIST(APPEND WebCore_SOURCES - bindings/js/JSDOMApplicationCacheCustom.cpp - ) -ENDIF () - IF (ENABLE_XPATH) LIST(APPEND WebCore_SOURCES bindings/js/JSCustomXPathNSResolver.cpp diff --git a/Source/WebCore/WebCore.gypi b/Source/WebCore/WebCore.gypi index 77ee498..9228d05 100644 --- a/Source/WebCore/WebCore.gypi +++ b/Source/WebCore/WebCore.gypi @@ -1794,7 +1794,6 @@ 'bindings/js/JSCustomXPathNSResolver.cpp', 'bindings/js/JSCustomXPathNSResolver.h', 'bindings/js/JSDictionary.cpp', - 'bindings/js/JSDOMApplicationCacheCustom.cpp', 'bindings/js/JSDOMBinding.cpp', 'bindings/js/JSDOMFormDataCustom.cpp', 'bindings/js/JSDOMGlobalObject.cpp', diff --git a/Source/WebCore/WebCore.pro b/Source/WebCore/WebCore.pro index ab905fe..dfd2c00 100644 --- a/Source/WebCore/WebCore.pro +++ b/Source/WebCore/WebCore.pro @@ -3563,11 +3563,6 @@ SOURCES += \ loader/appcache/ApplicationCacheResource.cpp \ loader/appcache/DOMApplicationCache.cpp \ loader/appcache/ManifestParser.cpp - - !v8 { - SOURCES += \ - bindings/js/JSDOMApplicationCacheCustom.cpp - } } contains(DEFINES, ENABLE_WEB_SOCKETS=1) { diff --git a/Source/WebCore/WebCore.vcproj/WebCore.vcproj b/Source/WebCore/WebCore.vcproj/WebCore.vcproj index f2e0812..c4d4126 100755 --- a/Source/WebCore/WebCore.vcproj/WebCore.vcproj +++ b/Source/WebCore/WebCore.vcproj/WebCore.vcproj @@ -60201,58 +60201,6 @@ - - - - - - - - - - - - - - - - - - - - - -using namespace JSC; - -namespace WebCore { - -#if ENABLE(APPLICATION_CACHE_DYNAMIC_ENTRIES) - -JSValue JSDOMApplicationCache::hasItem(ExecState* exec) -{ - Frame* frame = asJSDOMWindow(exec->dynamicGlobalObject())->impl()->frame(); - if (!frame) - return jsUndefined(); - const KURL& url = frame->document()->completeURL(exec->argument(0).toString(exec)); - - ExceptionCode ec = 0; - bool result = impl()->hasItem(url, ec); - setDOMException(exec, ec); - return jsBoolean(result); -} - -JSValue JSDOMApplicationCache::add(ExecState* exec) -{ - Frame* frame = asJSDOMWindow(exec->dynamicGlobalObject())->impl()->frame(); - if (!frame) - return jsUndefined(); - const KURL& url = frame->document()->completeURL(exec->argument(0).toString(exec)); - - ExceptionCode ec = 0; - impl()->add(url, ec); - setDOMException(exec, ec); - return jsUndefined(); -} - -JSValue JSDOMApplicationCache::remove(ExecState* exec) -{ - Frame* frame = asJSDOMWindow(exec->dynamicGlobalObject())->impl()->frame(); - if (!frame) - return jsUndefined(); - const KURL& url = frame->document()->completeURL(exec->argument(0).toString(exec)); - - ExceptionCode ec = 0; - impl()->remove(url, ec); - setDOMException(exec, ec); - return jsUndefined(); -} - -#endif // ENABLE(APPLICATION_CACHE_DYNAMIC_ENTRIES) - -} // namespace WebCore - -#endif // ENABLE(OFFLINE_WEB_APPLICATIONS)