Changeset 91741 in webkit


Ignore:
Timestamp:
Jul 25, 2011 10:11:47 PM (13 years ago)
Author:
commit-queue@webkit.org
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 <jungjik.lee@samsung.com> 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):

Location:
trunk/Source/WebKit/efl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r91659 r91741  
     12011-07-25  JungJik Lee  <jungjik.lee@samsung.com>
     2
     3        [EFL] Remove unused code in ewk_tile_model.c
     4        https://bugs.webkit.org/show_bug.cgi?id=64521
     5
     6        Remove unused code in ewk_tile_model.c. Dirty flag is not referenced anywhere.
     7
     8        Reviewed by Daniel Bates.
     9
     10        * ewk/ewk_tiled_model.c:
     11        (ewk_tile_unused_cache_clear):
     12        (ewk_tile_unused_cache_flush):
     13        (ewk_tile_unused_cache_tile_get):
     14        (ewk_tile_unused_cache_tile_put):
     15
    1162011-07-25  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
    217
  • trunk/Source/WebKit/efl/ewk/ewk_tiled_model.c

    r89905 r91741  
    517517    int references;
    518518    unsigned int frozen;
    519     Eina_Bool dirty:1;
    520519};
    521520
     
    613612    tuc->memory.used = 0;
    614613    tuc->entries.count = 0;
    615     tuc->dirty = EINA_FALSE;
    616614}
    617615
     
    707705     * Don't need to sort any more.
    708706     */
    709 
    710     if (tuc->dirty)
    711         tuc->dirty = EINA_FALSE;
    712707
    713708    done = 0;
     
    761756
    762757/**
    763  * Flag cache as dirty.
    764  *
    765  * If cache is dirty then next flush operations will have to recompute
    766  * weight and sort again to find the best tiles to expire.
    767  *
    768  * One must call this function when tile properties that may change
    769  * likeness of tile to be flushed change, like Tile::stats.
    770  */
    771 void ewk_tile_unused_cache_dirty(Ewk_Tile_Unused_Cache *tuc)
    772 {
    773     tuc->dirty = EINA_TRUE;
    774 }
    775 
    776 /**
    777758 * Freeze cache to not do maintenance tasks.
    778759 *
     
    838819    tuc->entries.list = eina_list_remove_list(tuc->entries.list, e);
    839820    free(entry);
    840     // TODO assume dirty for now, but may it's not,
    841     // if the item was at the beginning of the queue
    842     tuc->dirty = EINA_TRUE;
    843821
    844822    return EINA_TRUE;
     
    890868    tuc->entries.count++;
    891869    tuc->memory.used += sizeof(Ewk_Tile) + t->bytes;
    892     tuc->dirty = EINA_TRUE;
    893870
    894871    return EINA_TRUE;
Note: See TracChangeset for help on using the changeset viewer.