From f4f8f22699846196efaa42b8cf6041fff4bee2d6 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 27 Jun 2021 00:50:01 +0200 Subject: [PATCH] Clang-tidy: readability-redundant-control-flow --- Source/dx.cpp | 1 - Source/items.cpp | 2 -- Source/missiles.cpp | 1 - 3 files changed, 4 deletions(-) diff --git a/Source/dx.cpp b/Source/dx.cpp index 6760976fe..ef2aad0ce 100644 --- a/Source/dx.cpp +++ b/Source/dx.cpp @@ -236,7 +236,6 @@ void Blit(SDL_Surface *src, SDL_Rect *src_rect, SDL_Rect *dst_rect) #ifndef USE_SDL1 if (SDL_BlitSurface(src, src_rect, dst, dst_rect) < 0) ErrSdl(); - return; #else if (!OutputRequiresScaling()) { if (SDL_BlitSurface(src, src_rect, dst, dst_rect) < 0) diff --git a/Source/items.cpp b/Source/items.cpp index b29f68105..f79374828 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -2442,8 +2442,6 @@ void SpawnUnique(_unique_items uid, Point position) GetItemAttrs(ii, idx, curlv); GetUniqueItem(ii, uid); SetupItem(ii); - - return; } void ItemRndDur(int ii) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 165b943ad..d6fa9e755 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -3067,7 +3067,6 @@ static int Sentfire(int i, Point src) void MI_Dummy(int i) { - return; } void MI_Golem(int i)