Title: [91741] trunk/Source/WebKit/efl
Revision
91741
Author
[email protected]
Date
2011-07-25 22:11:47 -0700 (Mon, 25 Jul 2011)

Log Message

[EFL] Remove unused code in ewk_tile_model.c
https://bugs.webkit.org/show_bug.cgi?id=64521

Remove unused code in ewk_tile_model.c. Dirty flag is not referenced anywhere.

Patch by JungJik Lee <[email protected]> on 2011-07-25
Reviewed by Daniel Bates.

* ewk/ewk_tiled_model.c:
(ewk_tile_unused_cache_clear):
(ewk_tile_unused_cache_flush):
(ewk_tile_unused_cache_tile_get):
(ewk_tile_unused_cache_tile_put):

Modified Paths

Diff

Modified: trunk/Source/WebKit/efl/ChangeLog (91740 => 91741)


--- trunk/Source/WebKit/efl/ChangeLog	2011-07-26 04:44:30 UTC (rev 91740)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-07-26 05:11:47 UTC (rev 91741)
@@ -1,3 +1,18 @@
+2011-07-25  JungJik Lee  <[email protected]>
+
+        [EFL] Remove unused code in ewk_tile_model.c
+        https://bugs.webkit.org/show_bug.cgi?id=64521
+
+        Remove unused code in ewk_tile_model.c. Dirty flag is not referenced anywhere.
+
+        Reviewed by Daniel Bates.
+
+        * ewk/ewk_tiled_model.c:
+        (ewk_tile_unused_cache_clear):
+        (ewk_tile_unused_cache_flush):
+        (ewk_tile_unused_cache_tile_get):
+        (ewk_tile_unused_cache_tile_put):
+
 2011-07-25  Grzegorz Czajkowski  <[email protected]>
 
         [EFL] Move macro checking inside ewk_view_context_menu_forward_event

Modified: trunk/Source/WebKit/efl/ewk/ewk_tiled_model.c (91740 => 91741)


--- trunk/Source/WebKit/efl/ewk/ewk_tiled_model.c	2011-07-26 04:44:30 UTC (rev 91740)
+++ trunk/Source/WebKit/efl/ewk/ewk_tiled_model.c	2011-07-26 05:11:47 UTC (rev 91741)
@@ -516,7 +516,6 @@
     } locked;
     int references;
     unsigned int frozen;
-    Eina_Bool dirty:1;
 };
 
 static const size_t TILE_UNUSED_CACHE_ALLOCATE_INITIAL = 128;
@@ -612,7 +611,6 @@
 
     tuc->memory.used = 0;
     tuc->entries.count = 0;
-    tuc->dirty = EINA_FALSE;
 }
 
 /**
@@ -707,9 +705,6 @@
      * Don't need to sort any more.
      */
 
-    if (tuc->dirty)
-        tuc->dirty = EINA_FALSE;
-
     done = 0;
     count = 0;
     EINA_LIST_FOREACH_SAFE(tuc->entries.list, l, l_next, itr) {
@@ -760,20 +755,6 @@
 }
 
 /**
- * Flag cache as dirty.
- *
- * If cache is dirty then next flush operations will have to recompute
- * weight and sort again to find the best tiles to expire.
- *
- * One must call this function when tile properties that may change
- * likeness of tile to be flushed change, like Tile::stats.
- */
-void ewk_tile_unused_cache_dirty(Ewk_Tile_Unused_Cache *tuc)
-{
-    tuc->dirty = EINA_TRUE;
-}
-
-/**
  * Freeze cache to not do maintenance tasks.
  *
  * Maintenance tasks optimize cache usage, but maybe we know we should
@@ -837,9 +818,6 @@
     tuc->memory.used -= sizeof(Ewk_Tile) + t->bytes;
     tuc->entries.list = eina_list_remove_list(tuc->entries.list, e);
     free(entry);
-    // TODO assume dirty for now, but may it's not,
-    // if the item was at the beginning of the queue
-    tuc->dirty = EINA_TRUE;
 
     return EINA_TRUE;
 }
@@ -889,7 +867,6 @@
 
     tuc->entries.count++;
     tuc->memory.used += sizeof(Ewk_Tile) + t->bytes;
-    tuc->dirty = EINA_TRUE;
 
     return EINA_TRUE;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to