3890: Remove unused variables r=def- a=Jupeyy



## Checklist

- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
bors[bot] 2021-06-09 06:39:54 +00:00 committed by GitHub
commit 218705b76b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View file

@ -134,7 +134,9 @@ class CCommandProcessorFragment_OpenGL2 : public CCommandProcessorFragment_OpenG
};
std::vector<SBufferContainer> m_BufferContainers;
#ifndef BACKEND_AS_OPENGL_ES
GL_SVertexTex3D m_aStreamVertices[1024 * 4];
#endif
struct SBufferObject
{

View file

@ -4055,7 +4055,6 @@ void CClient::ToggleWindowVSync()
void CClient::LoadFont()
{
static CFont *pDefaultFont = 0;
static bool LoadedFallbackFont = false;
char aFilename[512];
char aBuff[1024];
const char *pFontFile = "fonts/DejaVuSans.ttf";
@ -4089,7 +4088,6 @@ void CClient::LoadFont()
IEngineTextRender *pTextRender = Kernel()->RequestInterface<IEngineTextRender>();
FontLoaded = pTextRender->LoadFallbackFont(pDefaultFont, aFilename, pBuf, Size);
}
LoadedFallbackFont |= FontLoaded;
if(!FontLoaded)
{

View file

@ -209,7 +209,6 @@ int CSnapshotDelta::CreateDelta(CSnapshot *pFrom, CSnapshot *pTo, void *pDstData
CSnapshotItem *pCurItem;
CSnapshotItem *pPastItem;
int Count = 0;
int SizeCount = 0;
pDelta->m_NumDeletedItems = 0;
pDelta->m_NumUpdateItems = 0;
@ -279,7 +278,6 @@ int CSnapshotDelta::CreateDelta(CSnapshot *pFrom, CSnapshot *pTo, void *pDstData
*pData++ = ItemSize / 4;
mem_copy(pData, pCurItem->Data(), ItemSize);
SizeCount += ItemSize;
pData += ItemSize / 4;
pDelta->m_NumUpdateItems++;
Count++;