Kaydet (Commit) de6e2957 authored tarafından Takeshi Abe's avatar Takeshi Abe

removed dead code

üst 771799c2
...@@ -144,18 +144,6 @@ int splash_load_bmp( const char *filename ) ...@@ -144,18 +144,6 @@ int splash_load_bmp( const char *filename )
width = png_get_image_width( png_ptr, info_ptr ); width = png_get_image_width( png_ptr, info_ptr );
height = png_get_image_height( png_ptr, info_ptr ); height = png_get_image_height( png_ptr, info_ptr );
#if 0
{
int i,j;
for (j = 0; j < height; j++) {
for (i = 0; i < width*3; i++) {
fprintf (stderr, "%.2x", bitmap_rows[j][i]);
}
fprintf (stderr, "\n");
}
}
#endif
return 1; return 1;
} }
#else #else
...@@ -173,8 +161,6 @@ int splash_load_bmp( const char *filename ) ...@@ -173,8 +161,6 @@ int splash_load_bmp( const char *filename )
if ( read( fd, file_header, BMP_HEADER_LEN ) != BMP_HEADER_LEN || file_header[0] != 'B' || file_header[1] != 'M' ) if ( read( fd, file_header, BMP_HEADER_LEN ) != BMP_HEADER_LEN || file_header[0] != 'B' || file_header[1] != 'M' )
LOAD_FAILURE( "Not a bitmap.\n" ); LOAD_FAILURE( "Not a bitmap.\n" );
/* int file_size = UINT32( file_header + 2 ); */
char info_header[ WIN_INFO_LEN ]; char info_header[ WIN_INFO_LEN ];
if ( read( fd, info_header, 4 ) != 4 ) if ( read( fd, info_header, 4 ) != 4 )
LOAD_FAILURE( "Unable to read the header.\n" ); LOAD_FAILURE( "Unable to read the header.\n" );
...@@ -582,7 +568,6 @@ static void process_events() ...@@ -582,7 +568,6 @@ static void process_events()
{ {
num_events--; num_events--;
XNextEvent( display, &xev ); XNextEvent( display, &xev );
//process_event(xev);
} }
} }
......
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