From 6d8bd87db61444cd2daaf1407c0928ea2f4282b0 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 21 Dec 2019 22:41:01 -0330 Subject: [PATCH] Eliminate superfluous 'setDirty' call. --- src/common/FBSurfaceSDL2.hxx | 2 -- src/emucore/FBSurface.hxx | 6 ------ src/libretro/FBSurfaceLIBRETRO.hxx | 1 - 3 files changed, 9 deletions(-) diff --git a/src/common/FBSurfaceSDL2.hxx b/src/common/FBSurfaceSDL2.hxx index cedbf9e98..658a38414 100644 --- a/src/common/FBSurfaceSDL2.hxx +++ b/src/common/FBSurfaceSDL2.hxx @@ -41,8 +41,6 @@ class FBSurfaceSDL2 : public FBSurface // the ones implemented here use SDL-specific code for extra performance // void fillRect(uInt32 x, uInt32 y, uInt32 w, uInt32 h, ColorId color) override; - // With hardware surfaces, it's faster to just update the entire surface - void setDirty() override {} uInt32 width() const override; uInt32 height() const override; diff --git a/src/emucore/FBSurface.hxx b/src/emucore/FBSurface.hxx index 27f78b954..6528a50a7 100644 --- a/src/emucore/FBSurface.hxx +++ b/src/emucore/FBSurface.hxx @@ -350,12 +350,6 @@ class FBSurface static void setPalette(const uInt32* palette) { myPalette = palette; } protected: - /** - This method must be called to indicate that the surface has been - modified, and should be redrawn at the next interval. - */ - virtual void setDirty() = 0; - /** This method should be called to check if the given coordinates are in bounds of the surface. diff --git a/src/libretro/FBSurfaceLIBRETRO.hxx b/src/libretro/FBSurfaceLIBRETRO.hxx index fde1925d6..790bd125c 100644 --- a/src/libretro/FBSurfaceLIBRETRO.hxx +++ b/src/libretro/FBSurfaceLIBRETRO.hxx @@ -37,7 +37,6 @@ class FBSurfaceLIBRETRO : public FBSurface // Most of the surface drawing primitives are implemented in FBSurface; void fillRect(uInt32 x, uInt32 y, uInt32 w, uInt32 h, ColorId color) override { } - void setDirty() override { } uInt32 width() const override { return myWidth; } uInt32 height() const override { return myHeight; }