Skip to content

Commit 5705149

Browse files
committed
SDL: cleanup redundant virtual methods
1 parent c816946 commit 5705149

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/platform/sdl/editor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void System::editSource(String loadPath) {
261261
case SB_KEY_ESCAPE:
262262
widget = editWidget;
263263
helpWidget->hide();
264-
debugStop();
264+
((Runtime *)this)->debugStop();
265265
break;
266266
case SB_KEY_CTRL('s'):
267267
saveFile(editWidget, loadPath);
@@ -308,15 +308,15 @@ void System::editSource(String loadPath) {
308308
widget = helpWidget;
309309
helpWidget->createMessage();
310310
helpWidget->show();
311-
debugStart(editWidget, loadPath.c_str());
311+
((Runtime *)this)->debugStart(editWidget, loadPath.c_str());
312312
statusMessage._row = editWidget->getRow();
313313
statusMessage._col = editWidget->getCol();
314314
break;
315315
case SB_KEY_F(6):
316-
debugStep(editWidget, helpWidget, false);
316+
((Runtime *)this)->debugStep(editWidget, helpWidget, false);
317317
break;
318318
case SB_KEY_F(7):
319-
debugStep(editWidget, helpWidget, true);
319+
((Runtime *)this)->debugStep(editWidget, helpWidget, true);
320320
break;
321321
case SB_KEY_F(8):
322322
((Runtime *)this)->exportRun(loadPath);

src/ui/system.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ struct System {
6060
virtual void alert(const char *title, const char *message) = 0;
6161
virtual int ask(const char *title, const char *prompt, bool cancel=true) = 0;
6262
virtual void browseFile(const char *url) = 0;
63-
virtual void debugStart(TextEditInput *edit, const char *file) = 0;
64-
virtual void debugStep(TextEditInput *edit, TextEditHelpWidget *help, bool cont) = 0;
65-
virtual void debugStop() = 0;
6663
virtual MAEvent processEvents(int waitFlag) = 0;
6764
virtual char *loadResource(const char *fileName);
6865
virtual void optionsBox(StringList *items) = 0;

0 commit comments

Comments
 (0)