Skip to content

Commit

Permalink
scripts: delete empty function bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Nov 3, 2024
1 parent 7fa31b3 commit ab0e1c7
Show file tree
Hide file tree
Showing 60 changed files with 57 additions and 437 deletions.
6 changes: 3 additions & 3 deletions 2dlib/gr.h
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ class grMemorySurface final : public grSurface {

class grHardwareSurface final : public grSurface {
public:
grHardwareSurface();
grHardwareSurface() = default;
grHardwareSurface(int w, int h, int bpp, unsigned flags = 0, const char *name = NULL);
virtual ~grHardwareSurface();
virtual ~grHardwareSurface() = default;

bool create(int w, int h, int bpp, unsigned flags = 0, const char *name = NULL);
};
Expand All @@ -395,7 +395,7 @@ class grScreen final : public grSurface {

public:
grScreen(int w, int h, int bpp, const char *name = NULL);
virtual ~grScreen();
virtual ~grScreen() = default;

void flip();
};
Expand Down
4 changes: 0 additions & 4 deletions 2dlib/hardsurf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@
// constructor and destructor
// ----------------------------------------------------------------------------

grHardwareSurface::grHardwareSurface() : grSurface() {}

grHardwareSurface::grHardwareSurface(int w, int h, int bpp, unsigned flags, const char *name)
: grSurface(w, h, bpp, SURFTYPE_GENERIC, flags, name) {}

grHardwareSurface::~grHardwareSurface() {}

// ----------------------------------------------------------------------------
// initialize a hardware surface with these values
// ----------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions 2dlib/screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
grScreen::grScreen(int w, int h, int bpp, const char *name)
: grSurface(w, h, bpp, SURFTYPE_VIDEOSCREEN, SURFFLAG_BACKBUFFER, name) {}

grScreen::~grScreen() {}

// ---------------------------------------------------------------------------
// screen refresh routines
// ---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AudioEncode/adecode.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace AudioDecoder {

class IAudioDecoder {
public:
virtual ~IAudioDecoder() {}
virtual ~IAudioDecoder() = default;

// Read data from the audio decoder.
// pBuffer: The buffer to receive the data from
Expand Down
13 changes: 1 addition & 12 deletions editor/DallasMainDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9693,8 +9693,7 @@ int CDallasMainDlg::CreateScriptFile(char *filename) {
O((""));
O(("class BaseScript {"));
O(("public:"));
O((" BaseScript();"));
O((" virtual ~BaseScript();"));
O((" virtual ~BaseScript() = default;"));
O((" virtual int16_t CallEvent(int event, tOSIRISEventInfo *data);"));
O(("};"));
O((""));
Expand Down Expand Up @@ -10273,16 +10272,6 @@ int CDallasMainDlg::CreateScriptFile(char *filename) {
O(("//======================="));
O((""));

O(("BaseScript::BaseScript()"));
O(("{"));
O(("}"));
O((""));

O(("BaseScript::~BaseScript()"));
O(("{"));
O(("}"));
O((""));

O(("int16_t BaseScript::CallEvent(int event,tOSIRISEventInfo *data)"));
O(("{"));
O((" mprintf(0,\"BaseScript::CallEvent()\\n\");"));
Expand Down
Loading

0 comments on commit ab0e1c7

Please sign in to comment.