Commit 9c8b7e13 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

removed unused field swap_num.

2007-06-20  Sven Neumann  <sven@gimp.org>

	* app/base/tile-private.h (struct _Tile): removed unused field
	swap_num.

	* app/base/tile.c (tile_new): initialise most of the Tile struct
	in the allocator.

svn path=/trunk/; revision=22805
parent 1140960d
2007-06-20 Sven Neumann <sven@gimp.org>
* app/base/tile-private.h (struct _Tile): removed unused field
swap_num.
* app/base/tile.c (tile_new): initialise most of the Tile struct
in the allocator.
2007-06-20 Sven Neumann <sven@gimp.org>
 
* plug-ins/script-fu/scheme-wrapper.c (init_constants): hardcode
......@@ -79,10 +79,6 @@ struct _Tile
* case the tile data is on disk.
*/
gint swap_num; /* the index into the file table of the file to be used
* for swapping. swap_num 1 is always the global
* swap file.
*/
gint64 swap_offset; /* the offset within the swap file of the tile data.
* if the tile data is in memory this will be set
* to -1.
......
......@@ -110,24 +110,12 @@ tile_set_rowhint (Tile *tile,
Tile *
tile_new (gint bpp)
{
Tile *tile = g_slice_new (Tile);
tile->ref_count = 0;
tile->write_count = 0;
tile->share_count = 0;
tile->dirty = FALSE;
tile->valid = FALSE;
tile->data = NULL;
Tile *tile = g_slice_new0 (Tile);
tile->ewidth = TILE_WIDTH;
tile->eheight = TILE_HEIGHT;
tile->bpp = bpp;
tile->swap_num = 1;
tile->swap_offset = -1;
tile->tlink = NULL;
tile->next = NULL;
tile->prev = NULL;
tile->listhead = NULL;
tile->rowhint = NULL;
#ifdef TILE_PROFILING
tile_count++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment