[gimp] app: Remove PixelRegionIterator::dirty_tiles
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Remove PixelRegionIterator::dirty_tiles
- Date: Tue, 13 Sep 2011 05:07:36 +0000 (UTC)
commit 83e3e58ebc147bed300d82a0bd62010572e0fc34
Author: Martin Nordholts <martinn src gnome org>
Date: Tue Sep 13 06:34:08 2011 +0200
app: Remove PixelRegionIterator::dirty_tiles
It is always 1 and only used in a boolean expression.
The member was introduced and used in
bc0451b4b490b08a4bff9a5032b2bff5797a9a9c and
fd586862fcd41000c93ded3b3b1604a65d7192fe, then it effectively became
unused in e4b031932a2dfca25add2798d56744528950051a with the
/* Why would we wan't to set dirty_tiles to 0 here? */
comments.
app/base/pixel-region.c | 5 +----
app/base/pixel-region.h | 1 -
2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/app/base/pixel-region.c b/app/base/pixel-region.c
index 8a6ea30..6110e11 100644
--- a/app/base/pixel-region.c
+++ b/app/base/pixel-region.c
@@ -294,7 +294,6 @@ pixel_regions_register (gint num_regions,
return NULL;
PRI = g_slice_new0 (PixelRegionIterator);
- PRI->dirty_tiles = 1;
va_start (ap, num_regions);
@@ -364,9 +363,7 @@ pixel_regions_process (PixelRegionIterator *PRI)
is a tile manager */
if (PRH->PR->tiles)
{
- /* only set the dirty flag if PRH->dirty_tiles == TRUE */
- tile_release (PRH->PR->curtile,
- PRH->PR->dirty && PRI->dirty_tiles);
+ tile_release (PRH->PR->curtile, PRH->PR->dirty);
PRH->PR->curtile = NULL;
}
diff --git a/app/base/pixel-region.h b/app/base/pixel-region.h
index bf48040..89b8491 100644
--- a/app/base/pixel-region.h
+++ b/app/base/pixel-region.h
@@ -48,7 +48,6 @@ struct _PixelRegionHolder
struct _PixelRegionIterator
{
GSList *pixel_regions;
- gint dirty_tiles;
gint region_width;
gint region_height;
gint portion_width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]