Title: [166620] trunk/Source/WebInspectorUI
Revision
166620
Author
commit-qu...@webkit.org
Date
2014-04-01 15:18:07 -0700 (Tue, 01 Apr 2014)

Log Message

Web Inspector: Remove stale localStorage deletion transition code
https://bugs.webkit.org/show_bug.cgi?id=131061

Patch by Joseph Pecoraro <pecor...@apple.com> on 2014-04-01
Reviewed by Timothy Hatcher.

* UserInterface/Base/ImageUtilities.js:
This code has been in for a while. We have transitioned to Web SQL.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (166619 => 166620)


--- trunk/Source/WebInspectorUI/ChangeLog	2014-04-01 22:18:06 UTC (rev 166619)
+++ trunk/Source/WebInspectorUI/ChangeLog	2014-04-01 22:18:07 UTC (rev 166620)
@@ -1,3 +1,13 @@
+2014-04-01  Joseph Pecoraro  <pecor...@apple.com>
+
+        Web Inspector: Remove stale localStorage deletion transition code
+        https://bugs.webkit.org/show_bug.cgi?id=131061
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Base/ImageUtilities.js:
+        This code has been in for a while. We have transitioned to Web SQL.
+
 2014-04-01  Zoltan Horvath  <zol...@webkit.org>
 
         [CSS Exclusions] Remove exclusions parsing support

Modified: trunk/Source/WebInspectorUI/UserInterface/Base/ImageUtilities.js (166619 => 166620)


--- trunk/Source/WebInspectorUI/UserInterface/Base/ImageUtilities.js	2014-04-01 22:18:06 UTC (rev 166619)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/ImageUtilities.js	2014-04-01 22:18:07 UTC (rev 166620)
@@ -44,23 +44,6 @@
 // Updates each image when the device pixel ratio changes to redraw at the new resolution.
 window.matchMedia("(-webkit-device-pixel-ratio: 1)").addListener(_devicePixelRatioChanged);
 
-// Delete old cached images from localStorage to free up space.
-// FIXME: Remove this once it has been in the builds for a while.
-try {
-    const processedFlagKey = "com.apple.WebInspector.deleted-generated-images";
-
-    if (!window.localStorage[processedFlagKey]) {
-        for (var key in window.localStorage) {
-            if (/^com\.apple\.WebInspector\.generated-(?:colored|embossed)-image-/.test(key))
-                delete window.localStorage[key];
-        }
-
-        window.localStorage[processedFlagKey] = true;
-    }
-} catch (e) {
-    // Ignore.
-}
-
 function _devicePixelRatioChanged()
 {
     _prefetchCachedImagesAndUpdate();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to