remove useless double statement, remove unused variable and assignment

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31344 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-09-13 15:41:53 +00:00
parent f02362493e
commit ed0d31d84e
3 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2010-09-13 Riccardo Mottola
* Source/NSBitmapImageRep+JPEG.m: remove useless double statement
* Source/tiff.m: remove unused variable and assignment
2010-09-12 German Arias <german@xelalug.org>
* Panels/Spanish.lproj/GSFindPanel.gorm: Fixed a misspelling.
* Source/NSFontPanel: Changed the width of size's column to

View file

@ -2,7 +2,7 @@
Methods for reading jpeg images
Copyright (C) 2003 Free Software Foundation, Inc.
Copyright (C) 2003-2010 Free Software Foundation, Inc.
Written by: Stefan Kleine Stegemann <stefan@wms-network.de>
Date: Nov 2003
@ -185,7 +185,6 @@ static void gs_jpeg_memory_src_create(j_decompress_ptr cinfo, NSData *data)
gs_jpeg_source_ptr src;
cinfo->src = (struct jpeg_source_mgr *)malloc(sizeof(gs_jpeg_source_mgr));
src = (gs_jpeg_source_ptr)cinfo->src;
src = (gs_jpeg_source_ptr) cinfo->src;
src->parent.init_source = gs_init_source;

View file

@ -3,7 +3,7 @@
Functions for dealing with tiff images.
Copyright (C) 1996,1999 Free Software Foundation, Inc.
Copyright (C) 1996,1999-2010 Free Software Foundation, Inc.
Author: Adam Fedor <fedor@colorado.edu>
Date: Feb 1996
@ -341,7 +341,6 @@ NSTiffRead(TIFF *image, NSTiffInfo *info, unsigned char *data)
{
int i;
unsigned int row, col;
int maxval;
int error = 0;
uint8* outP;
uint8* buf;
@ -360,7 +359,6 @@ NSTiffRead(TIFF *image, NSTiffInfo *info, unsigned char *data)
return -1;
}
maxval = (1 << info->bitsPerSample) - 1;
scan_line_size = TIFFScanlineSize(image);
buf = _TIFFmalloc(scan_line_size);