[iortcw] 153/497: All: Remove unused array joy_pressed

Simon McVittie smcv at debian.org
Fri Sep 8 10:36:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit f46a3b1ea985b1ce5962ed9739c0a0b55011f98e
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Fri Jul 4 12:14:31 2014 +0000

    All: Remove unused array joy_pressed
---
 MP/code/sdl/sdl_input.c | 3 ---
 SP/code/sdl/sdl_input.c | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/MP/code/sdl/sdl_input.c b/MP/code/sdl/sdl_input.c
index 53075e0..e353eb6 100644
--- a/MP/code/sdl/sdl_input.c
+++ b/MP/code/sdl/sdl_input.c
@@ -507,7 +507,6 @@ IN_JoyMove
 */
 static void IN_JoyMove( void )
 {
-	qboolean joy_pressed[ARRAY_LEN(joy_keys)];
 	unsigned int axes = 0;
 	unsigned int hats = 0;
 	int total = 0;
@@ -518,8 +517,6 @@ static void IN_JoyMove( void )
 
 	SDL_JoystickUpdate();
 
-	memset(joy_pressed, '\0', sizeof (joy_pressed));
-
 	// update the ball state.
 	total = SDL_JoystickNumBalls(stick);
 	if (total > 0)
diff --git a/SP/code/sdl/sdl_input.c b/SP/code/sdl/sdl_input.c
index 53075e0..e353eb6 100644
--- a/SP/code/sdl/sdl_input.c
+++ b/SP/code/sdl/sdl_input.c
@@ -507,7 +507,6 @@ IN_JoyMove
 */
 static void IN_JoyMove( void )
 {
-	qboolean joy_pressed[ARRAY_LEN(joy_keys)];
 	unsigned int axes = 0;
 	unsigned int hats = 0;
 	int total = 0;
@@ -518,8 +517,6 @@ static void IN_JoyMove( void )
 
 	SDL_JoystickUpdate();
 
-	memset(joy_pressed, '\0', sizeof (joy_pressed));
-
 	// update the ball state.
 	total = SDL_JoystickNumBalls(stick);
 	if (total > 0)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list