Skip to content
Snippets Groups Projects
Commit 3a0bd02e authored by Martin Nilsson's avatar Martin Nilsson
Browse files

Optimized dead code.

Rev: src/post_modules/GTK2/source/gdkpixbuf.pre:1.9
parent dbf4c08a
Branches
Tags
No related merge requests found
......@@ -195,15 +195,7 @@ void create(?int has_alpha, ?int bits_per_sample,
INT_TYPE has_alpha=0;
INT_TYPE bits_per_sample=8,width=640,height=480;
GdkPixbuf *gp;
if (args==1)
get_all_args("create",args,"%i",&has_alpha);
else if (args==2)
get_all_args("create",args,"%i%i",&has_alpha,&bits_per_sample);
else if (args==3)
get_all_args("create",args,"%i%i%i",&has_alpha,&bits_per_sample,
&width);
else if (args>4)
get_all_args("create",args,"%i%i%i%i",&has_alpha,&bits_per_sample,
get_all_args("create",args,".%i%i%i%i",&has_alpha,&bits_per_sample,
&width,&height);
gp=gdk_pixbuf_new(colorspace,has_alpha,bits_per_sample,width,height);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment