From e9797fe24de4f2d531bf9c3c2153cfe6d446545e Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 16 Oct 2018 06:08:42 +0000 Subject: [PATCH] Remove redundant return statements git-svn-id: https://svn.eduke32.com/eduke32@7069 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gamestructures.cpp | 3 +-- source/duke3d/src/m32vars.cpp | 2 -- source/duke3d/src/savegame.cpp | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/source/duke3d/src/gamestructures.cpp b/source/duke3d/src/gamestructures.cpp index 24b1b8ef4..ebfce9dd0 100644 --- a/source/duke3d/src/gamestructures.cpp +++ b/source/duke3d/src/gamestructures.cpp @@ -1045,8 +1045,7 @@ void __fastcall VM_SetWall(int32_t const wallNum, int32_t const labelNum, int32_ break; } - return; -} + } int32_t __fastcall VM_GetSector(int32_t const sectNum, int32_t labelNum) { diff --git a/source/duke3d/src/m32vars.cpp b/source/duke3d/src/m32vars.cpp index e9e65f1d4..42f5f671c 100644 --- a/source/duke3d/src/m32vars.cpp +++ b/source/duke3d/src/m32vars.cpp @@ -67,8 +67,6 @@ static void Gv_Clear(void) hash_init(&h_gamevars); hash_init(&h_arrays); - - return; } #define ASSERT_IMPLIES(x, y) Bassert(!(x) || (y)) diff --git a/source/duke3d/src/savegame.cpp b/source/duke3d/src/savegame.cpp index cdf213d1f..69ee1d346 100644 --- a/source/duke3d/src/savegame.cpp +++ b/source/duke3d/src/savegame.cpp @@ -916,7 +916,6 @@ static void docmpsd(const void *ptr, void *dump, uint32_t size, uint32_t cnt, ui CPDATA(8); *diffvar = retdiff; - return; #undef CPELTS #undef CPSINGLEVAL @@ -971,7 +970,6 @@ static void cmpspecdata(const dataspec_t *spec, uint8_t **dumpvar, uint8_t **dif *diffvar = diff; *dumpvar = dump; - return; } #define VALOFS(bits,p,ofs) (*(((UINT(bits) *)(p)) + (ofs)))