Skip to content

Commit

Permalink
VideoBackends/Null: Remove unnecessary constructors and destructors
Browse files Browse the repository at this point in the history
Removes constructors and destructors that don't actually provide any
behavior (i.e. doesn't constain generated code related to non-trivial
members in a cpp file, etc).

Lessens the amount of code present.
  • Loading branch information
lioncash committed Jul 27, 2019
1 parent bdcc585 commit 86000fc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions Source/Core/VideoBackends/Null/NullTexture.h
Expand Up @@ -19,7 +19,6 @@ class NullTexture final : public AbstractTexture
{
public:
explicit NullTexture(const TextureConfig& config);
~NullTexture() = default;

void CopyRectangleFromTexture(const AbstractTexture* src,
const MathUtil::Rectangle<int>& src_rect, u32 src_layer,
Expand Down Expand Up @@ -58,7 +57,6 @@ class NullFramebuffer final : public AbstractFramebuffer
explicit NullFramebuffer(AbstractTexture* color_attachment, AbstractTexture* depth_attachment,
AbstractTextureFormat color_format, AbstractTextureFormat depth_format,
u32 width, u32 height, u32 layers, u32 samples);
~NullFramebuffer() override = default;

static std::unique_ptr<NullFramebuffer> Create(NullTexture* color_attachment,
NullTexture* depth_attachment);
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/VideoBackends/Null/PerfQuery.h
Expand Up @@ -11,8 +11,6 @@ namespace Null
class PerfQuery : public PerfQueryBase
{
public:
PerfQuery() {}
~PerfQuery() override {}
void EnableQuery(PerfQueryGroup type) override {}
void DisableQuery(PerfQueryGroup type) override {}
void ResetQuery() override {}
Expand Down
4 changes: 0 additions & 4 deletions Source/Core/VideoBackends/Null/Render.cpp
Expand Up @@ -44,7 +44,6 @@ class NullShader final : public AbstractShader
{
public:
explicit NullShader(ShaderStage stage) : AbstractShader(stage) {}
~NullShader() = default;
};

std::unique_ptr<AbstractShader>
Expand All @@ -61,9 +60,6 @@ std::unique_ptr<AbstractShader> Renderer::CreateShaderFromBinary(ShaderStage sta

class NullPipeline final : public AbstractPipeline
{
public:
NullPipeline() = default;
~NullPipeline() override = default;
};

std::unique_ptr<AbstractPipeline> Renderer::CreatePipeline(const AbstractPipelineConfig& config,
Expand Down
4 changes: 0 additions & 4 deletions Source/Core/VideoBackends/Null/TextureCache.h
Expand Up @@ -10,10 +10,6 @@ namespace Null
{
class TextureCache : public TextureCacheBase
{
public:
TextureCache() {}
~TextureCache() {}

protected:
void CopyEFB(AbstractStagingTexture* dst, const EFBCopyParams& params, u32 native_width,
u32 bytes_per_row, u32 num_blocks_y, u32 memory_stride,
Expand Down

0 comments on commit 86000fc

Please sign in to comment.