Readability: remove redundant return, continue, enum declaration
authorSylvain Becker <sylvain.becker@gmail.com>
Wed, 30 Oct 2019 15:36:17 +0100
changeset 13201c88f111dc41f
parent 13200 057a3fe53d5a
child 13202 1254722e1722
Readability: remove redundant return, continue, enum declaration
src/audio/alsa/SDL_alsa_audio.c
src/joystick/SDL_gamecontroller.c
src/render/opengl/SDL_render_gl.c
src/render/opengles2/SDL_render_gles2.c
src/video/SDL_blit_N.c
src/video/wayland/SDL_waylandtouch.c
     1.1 --- a/src/audio/alsa/SDL_alsa_audio.c	Wed Oct 30 15:13:55 2019 +0100
     1.2 +++ b/src/audio/alsa/SDL_alsa_audio.c	Wed Oct 30 15:36:17 2019 +0100
     1.3 @@ -340,7 +340,6 @@
     1.4  static void
     1.5  no_swizzle(_THIS, void *buffer, Uint32 bufferlen)
     1.6  {
     1.7 -    return;
     1.8  }
     1.9  #endif /* SND_CHMAP_API_VERSION */
    1.10  
     2.1 --- a/src/joystick/SDL_gamecontroller.c	Wed Oct 30 15:13:55 2019 +0100
     2.2 +++ b/src/joystick/SDL_gamecontroller.c	Wed Oct 30 15:36:17 2019 +0100
     2.3 @@ -881,7 +881,7 @@
     2.4              for ( pPrevMapping = s_pSupportedControllers, pCurrMapping = pPrevMapping->next;
     2.5                    pCurrMapping; 
     2.6                    pPrevMapping = pCurrMapping, pCurrMapping = pCurrMapping->next ) {
     2.7 -                continue;
     2.8 +                /* continue; */
     2.9              }
    2.10              pPrevMapping->next = pControllerMapping;
    2.11          } else {
     3.1 --- a/src/render/opengl/SDL_render_gl.c	Wed Oct 30 15:13:55 2019 +0100
     3.2 +++ b/src/render/opengl/SDL_render_gl.c	Wed Oct 30 15:36:17 2019 +0100
     3.3 @@ -180,7 +180,7 @@
     3.4          }
     3.5      } else if (data->glGetError != NULL) {
     3.6          while (data->glGetError() != GL_NO_ERROR) {
     3.7 -            continue;
     3.8 +            /* continue; */
     3.9          }
    3.10      }
    3.11  }
     4.1 --- a/src/render/opengles2/SDL_render_gles2.c	Wed Oct 30 15:13:55 2019 +0100
     4.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Wed Oct 30 15:36:17 2019 +0100
     4.3 @@ -208,7 +208,7 @@
     4.4          return;
     4.5      }
     4.6      while (data->glGetError() != GL_NO_ERROR) {
     4.7 -        continue;
     4.8 +        /* continue; */
     4.9      }
    4.10  }
    4.11  
     5.1 --- a/src/video/SDL_blit_N.c	Wed Oct 30 15:13:55 2019 +0100
     5.2 +++ b/src/video/SDL_blit_N.c	Wed Oct 30 15:36:17 2019 +0100
     5.3 @@ -2317,7 +2317,6 @@
     5.4      if (_alpha_channel) {
     5.5          *_alpha_channel = alpha_channel;
     5.6      }
     5.7 -    return;
     5.8  }
     5.9  
    5.10  
    5.11 @@ -3109,7 +3108,6 @@
    5.12              dst += dstskip;
    5.13          }
    5.14      }
    5.15 -    return;
    5.16  }
    5.17  
    5.18  /* Blit_3or4_to_3or4__inversed_rgb: 3 or 4 bpp, inversed RGB triplet */
    5.19 @@ -3214,7 +3212,6 @@
    5.20              dst += dstskip;
    5.21          }
    5.22      }
    5.23 -    return;
    5.24  }
    5.25  
    5.26  /* Normal N to N optimized blitters */
     6.1 --- a/src/video/wayland/SDL_waylandtouch.c	Wed Oct 30 15:13:55 2019 +0100
     6.2 +++ b/src/video/wayland/SDL_waylandtouch.c	Wed Oct 30 15:36:17 2019 +0100
     6.3 @@ -192,7 +192,6 @@
     6.4  /* wayland-qt-windowmanager.c ENDS */
     6.5  
     6.6  /* wayland-qt-surface-extension.c BEGINS */
     6.7 -extern const struct wl_interface qt_extended_surface_interface;
     6.8  #ifndef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
     6.9  extern const struct wl_interface wl_surface_interface;
    6.10  #endif