forked from rosebudai/OpenRCT2-Web
Remove unused variables (#27322)
This commit is contained in:
1 parent
9521e6cdf9
commit
52a55c3e8d
2 files changed
+11
-14
No files matched your search
@@ -53,13 +53,13 @@ struct ttf_getwidth_cache_entry
|
||||
|
||||
static ttf_cache_entry _ttfSurfaceCache[kTTFSurfaceCacheSize] = {};
|
||||
static int32_t _ttfSurfaceCacheCount = 0;
|
||||
static int32_t _ttfSurfaceCacheHitCount = 0;
|
||||
static int32_t _ttfSurfaceCacheMissCount = 0;
|
||||
// static int32_t _ttfSurfaceCacheHitCount = 0;
|
||||
// static int32_t _ttfSurfaceCacheMissCount = 0;
|
||||
|
||||
static ttf_getwidth_cache_entry _ttfGetWidthCache[kTTFGetWidthCacheSize] = {};
|
||||
static int32_t _ttfGetWidthCacheCount = 0;
|
||||
static int32_t _ttfGetWidthCacheHitCount = 0;
|
||||
static int32_t _ttfGetWidthCacheMissCount = 0;
|
||||
// static int32_t _ttfGetWidthCacheCount = 0;
|
||||
// static int32_t _ttfGetWidthCacheHitCount = 0;
|
||||
// static int32_t _ttfGetWidthCacheMissCount = 0;
|
||||
|
||||
static std::mutex _mutex;
|
||||
|
||||
@@ -220,7 +220,7 @@ TTFSurface* TTFSurfaceCacheGetOrAdd(TTF_Font* font, std::string_view text)
|
||||
break;
|
||||
if (entry->font == font && String::equals(entry->text, text))
|
||||
{
|
||||
_ttfSurfaceCacheHitCount++;
|
||||
// _ttfSurfaceCacheHitCount++;
|
||||
entry->lastUseTick = gCurrentDrawCount;
|
||||
return entry->surface;
|
||||
}
|
||||
@@ -246,7 +246,7 @@ TTFSurface* TTFSurfaceCacheGetOrAdd(TTF_Font* font, std::string_view text)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
_ttfSurfaceCacheMissCount++;
|
||||
// _ttfSurfaceCacheMissCount++;
|
||||
// printf("CACHE HITS: %d MISSES: %d)\n", _ttfSurfaceCacheHitCount, _ttfSurfaceCacheMissCount);
|
||||
|
||||
_ttfSurfaceCacheCount++;
|
||||
@@ -272,7 +272,7 @@ static void TTFGetWidthCacheDisposeAll()
|
||||
for (int32_t i = 0; i < kTTFGetWidthCacheSize; i++)
|
||||
{
|
||||
TTFGetWidthCacheDispose(&_ttfGetWidthCache[i]);
|
||||
_ttfGetWidthCacheCount--;
|
||||
// _ttfGetWidthCacheCount--;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ uint32_t TTFGetWidthCacheGetOrAdd(TTF_Font* font, std::string_view text)
|
||||
break;
|
||||
if (entry->font == font && String::equals(entry->text, text))
|
||||
{
|
||||
_ttfGetWidthCacheHitCount++;
|
||||
// _ttfGetWidthCacheHitCount++;
|
||||
entry->lastUseTick = gCurrentDrawCount;
|
||||
return entry->width;
|
||||
}
|
||||
@@ -317,9 +317,9 @@ uint32_t TTFGetWidthCacheGetOrAdd(TTF_Font* font, std::string_view text)
|
||||
int32_t width, height;
|
||||
TTFGetSize(font, text, &width, &height);
|
||||
|
||||
_ttfGetWidthCacheMissCount++;
|
||||
// _ttfGetWidthCacheMissCount++;
|
||||
|
||||
_ttfGetWidthCacheCount++;
|
||||
// _ttfGetWidthCacheCount++;
|
||||
entry->width = width;
|
||||
entry->font = font;
|
||||
entry->text = text;
|
||||
|
||||
@@ -71,7 +71,6 @@ namespace OpenRCT2
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
static uint8_t _backupAnimationImageIdOffset;
|
||||
static TileElement* _peepRideEntranceExitElement;
|
||||
|
||||
static std::shared_ptr<IAudioChannel> _crowdSoundChannel = nullptr;
|
||||
|
||||
@@ -1563,12 +1562,10 @@ namespace OpenRCT2
|
||||
if (entranceType == EntranceType::rideExit)
|
||||
{
|
||||
pathing_result |= PATHING_RIDE_EXIT;
|
||||
_peepRideEntranceExitElement = tile_element;
|
||||
}
|
||||
else if (entranceType == EntranceType::rideEntrance)
|
||||
{
|
||||
pathing_result |= PATHING_RIDE_ENTRANCE;
|
||||
_peepRideEntranceExitElement = tile_element;
|
||||
}
|
||||
|
||||
if (entranceType == EntranceType::rideExit)
|
||||
|
||||
Reference in new issue
Block a user