فهرست منبع

Removed unused variable

Sam Lantinga 3 سال پیش
والد
کامیت
db075ff3ba
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      src/joystick/hidapi/SDL_hidapi_ps4.c

+ 0 - 2
src/joystick/hidapi/SDL_hidapi_ps4.c

@@ -979,8 +979,6 @@ VerifyCRC(Uint8 *data, int size)
 static SDL_bool
 HIDAPI_DriverPS4_IsPacketValid(SDL_DriverPS4_Context *ctx, Uint8 *data, int size)
 {
-    PS4StatePacket_t *packet = NULL;
-
     switch (data[0]) {
     case k_EPS4ReportIdUsbState:
         /* In the case of a DS4 USB dongle, bit[2] of byte 31 indicates if a DS4 is actually connected (indicated by '0').