tree 5b46fd5b8c94
authorSam Lantinga <slouken@libsdl.org>
Mon, 11 Feb 2013 21:47:13 -0800
changeset 686373be5b6b2a86
parent 6862 d189a1e771fe
child 6864 97187387ad79
tree 5b46fd5b8c94
parent 971b278f0756
author Edward Rudd <urkle@outoforder.cc> 1358022907 18000
committer Edward Rudd <urkle@outoforder.cc> 1358022907 18000
revision 6819
branch default

Remove some redundant assigns
src/events/SDL_touch.c
src/haptic/darwin/SDL_syshaptic.c
src/video/SDL_blit_A.c
src/video/SDL_shape.c
     1.1 --- a/src/events/SDL_touch.c	Mon Feb 11 21:39:58 2013 -0800
     1.2 +++ b/src/events/SDL_touch.c	Mon Feb 11 21:47:13 2013 -0800
     1.3 @@ -125,7 +125,6 @@
     1.4      SDL_memcpy(SDL_touchPads[index], touch, sizeof(*touch));
     1.5  
     1.6      /* we're setting the touch properties */
     1.7 -    length = 0;
     1.8      length = SDL_strlen(name);
     1.9      SDL_touchPads[index]->focus = 0;
    1.10      SDL_touchPads[index]->name = SDL_malloc((length + 2) * sizeof(char));
     2.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Mon Feb 11 21:39:58 2013 -0800
     2.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Mon Feb 11 21:47:13 2013 -0800
     2.3 @@ -173,7 +173,6 @@
     2.4      /* IOServiceGetMatchingServices consumes dictionary. */
     2.5  
     2.6      if (!IOIteratorIsValid(iter)) {     /* No iterator. */
     2.7 -        numhaptics = 0;
     2.8          return 0;
     2.9      }
    2.10  
     3.1 --- a/src/video/SDL_blit_A.c	Mon Feb 11 21:39:58 2013 -0800
     3.2 +++ b/src/video/SDL_blit_A.c	Mon Feb 11 21:47:13 2013 -0800
     3.3 @@ -258,7 +258,7 @@
     3.4  BlitRGBtoRGBSurfaceAlphaMMX(SDL_BlitInfo * info)
     3.5  {
     3.6      SDL_PixelFormat *df = info->dst_fmt;
     3.7 -    Uint32 chanmask = df->Rmask | df->Gmask | df->Bmask;
     3.8 +    Uint32 chanmask;
     3.9      unsigned alpha = info->a;
    3.10  
    3.11      if (alpha == 128 && (df->Rmask | df->Gmask | df->Bmask) == 0x00FFFFFF) {
     4.1 --- a/src/video/SDL_shape.c	Mon Feb 11 21:39:58 2013 -0800
     4.2 +++ b/src/video/SDL_shape.c	Mon Feb 11 21:47:13 2013 -0800
     4.3 @@ -71,7 +71,6 @@
     4.4      SDL_Color key;
     4.5      if(SDL_MUSTLOCK(shape))
     4.6          SDL_LockSurface(shape);
     4.7 -    pixel = (Uint8*)shape->pixels;
     4.8      for(y = 0;y<shape->h;y++) {
     4.9          for(x=0;x<shape->w;x++) {
    4.10              alpha = 0;