mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +00:00
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:
parent
38c38dc100
commit
c75954f582
3 changed files with 7 additions and 5 deletions
|
@ -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>
|
2010-09-12 German Arias <german@xelalug.org>
|
||||||
* Panels/Spanish.lproj/GSFindPanel.gorm: Fixed a misspelling.
|
* Panels/Spanish.lproj/GSFindPanel.gorm: Fixed a misspelling.
|
||||||
* Source/NSFontPanel: Changed the width of size's column to
|
* Source/NSFontPanel: Changed the width of size's column to
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Methods for reading jpeg images
|
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>
|
Written by: Stefan Kleine Stegemann <stefan@wms-network.de>
|
||||||
Date: Nov 2003
|
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;
|
gs_jpeg_source_ptr src;
|
||||||
|
|
||||||
cinfo->src = (struct jpeg_source_mgr *)malloc(sizeof(gs_jpeg_source_mgr));
|
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 = (gs_jpeg_source_ptr) cinfo->src;
|
||||||
src->parent.init_source = gs_init_source;
|
src->parent.init_source = gs_init_source;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
Functions for dealing with tiff images.
|
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>
|
Author: Adam Fedor <fedor@colorado.edu>
|
||||||
Date: Feb 1996
|
Date: Feb 1996
|
||||||
|
@ -341,7 +341,6 @@ NSTiffRead(TIFF *image, NSTiffInfo *info, unsigned char *data)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unsigned int row, col;
|
unsigned int row, col;
|
||||||
int maxval;
|
|
||||||
int error = 0;
|
int error = 0;
|
||||||
uint8* outP;
|
uint8* outP;
|
||||||
uint8* buf;
|
uint8* buf;
|
||||||
|
@ -360,7 +359,6 @@ NSTiffRead(TIFF *image, NSTiffInfo *info, unsigned char *data)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
maxval = (1 << info->bitsPerSample) - 1;
|
|
||||||
scan_line_size = TIFFScanlineSize(image);
|
scan_line_size = TIFFScanlineSize(image);
|
||||||
buf = _TIFFmalloc(scan_line_size);
|
buf = _TIFFmalloc(scan_line_size);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue