From fb3580efa12a93ca3d8f9ba6c05fad2af53f61bf Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Mon, 17 Oct 2016 20:11:58 +0100 Subject: [PATCH] cdvdgigaherz: Remove unneeded code --- plugins/cdvdGigaherz/src/CDVD.cpp | 1 - plugins/cdvdGigaherz/src/CDVD.h | 5 ----- plugins/cdvdGigaherz/src/ReadThread.cpp | 8 -------- 3 files changed, 14 deletions(-) diff --git a/plugins/cdvdGigaherz/src/CDVD.cpp b/plugins/cdvdGigaherz/src/CDVD.cpp index 264c28743f..3587cb976e 100644 --- a/plugins/cdvdGigaherz/src/CDVD.cpp +++ b/plugins/cdvdGigaherz/src/CDVD.cpp @@ -137,7 +137,6 @@ bool weAreInNewDiskCB = false; Source *src; -char bfr[2352]; char throwaway[2352]; extern s32 prefetch_last_lba; extern s32 prefetch_last_mode; diff --git a/plugins/cdvdGigaherz/src/CDVD.h b/plugins/cdvdGigaherz/src/CDVD.h index d6a185de5a..2d57fa57c0 100644 --- a/plugins/cdvdGigaherz/src/CDVD.h +++ b/plugins/cdvdGigaherz/src/CDVD.h @@ -149,15 +149,10 @@ extern HINSTANCE hinst; #define MSF_TO_LBA(m, s, f) ((m * 60 + s) * 75 + f - 150) -s32 cdvdDirectReadSector(s32 first, s32 mode, char *buffer); - -s32 cdvdGetMediaType(); - void ReadSettings(); void WriteSettings(); void CfgSetSettingsDir(const char *dir); -extern char csrc[]; extern bool cdvd_is_open; extern bool cdvdKeepAlive_is_open; extern bool disc_has_changed; diff --git a/plugins/cdvdGigaherz/src/ReadThread.cpp b/plugins/cdvdGigaherz/src/ReadThread.cpp index e585f34c40..25d2c1e038 100644 --- a/plugins/cdvdGigaherz/src/ReadThread.cpp +++ b/plugins/cdvdGigaherz/src/ReadThread.cpp @@ -29,12 +29,6 @@ CRITICAL_SECTION CacheMutex; DWORD pidThread = 0; -enum loadStatus { - LoadIdle, - LoadPending, - LoadSuccess, -}; - typedef struct { int lsn; @@ -390,8 +384,6 @@ s32 cdvdGetMediaType() return src->GetMediaType(); } -s32 refreshes = 0; - s32 cdvdRefreshData() { char *diskTypeName = "Unknown";