From fba534de0ac51f182af53899e294b9eda04cb5d0 Mon Sep 17 00:00:00 2001 From: obligaron Date: Fri, 30 Jul 2021 09:28:37 +0200 Subject: [PATCH] Remove unused LastMouseButtonTime --- Source/diablo.cpp | 3 --- Source/diablo.h | 1 - 2 files changed, 4 deletions(-) diff --git a/Source/diablo.cpp b/Source/diablo.cpp index 17b5555f8..00356fd5c 100644 --- a/Source/diablo.cpp +++ b/Source/diablo.cpp @@ -121,7 +121,6 @@ QuickMessage QuickMessages[QUICK_MESSAGE_OPTIONS] = { /** This and the following mouse variables are for handling in-game click-and-hold actions */ MouseActionType LastMouseButtonAction = MouseActionType::None; -uint32_t LastMouseButtonTime = 0; // Controller support: Actions to run after updating the cursor state. // Defined in SourceX/controls/plctrls.cpp. @@ -288,7 +287,6 @@ void LeftMouseCmd(bool bShift) void LeftMouseDown(int wParam) { LastMouseButtonAction = MouseActionType::None; - LastMouseButtonTime = SDL_GetTicks(); if (gmenu_left_mouse(true)) return; @@ -377,7 +375,6 @@ void LeftMouseUp(int wParam) void RightMouseDown() { LastMouseButtonAction = MouseActionType::None; - LastMouseButtonTime = SDL_GetTicks(); if (gmenu_is_active() || sgnTimeoutCurs != CURSOR_NONE || PauseMode == 2 || Players[MyPlayerId]._pInvincible) { return; diff --git a/Source/diablo.h b/Source/diablo.h index 2fe9f62ac..734ec8891 100644 --- a/Source/diablo.h +++ b/Source/diablo.h @@ -83,7 +83,6 @@ extern uint16_t gnTickDelay; extern char gszProductName[64]; extern MouseActionType LastMouseButtonAction; -extern uint32_t LastMouseButtonTime; void FreeGameMem(); bool StartGame(bool bNewGame, bool bSinglePlayer);