Commit 2165052d authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL
Browse files

Delete some redundant/switched out code

Some #if FALSE's trimmed.
Redundant check of s!=0 within a while (s!=0) removed.
parent c0cefc05
......@@ -132,9 +132,6 @@ static void arcedit__clickproc(wimp_i i) {
#define MQuit 3
#endif
#if FALSE
#define MTask 1
#endif
#define MText 1
#define MBASIC 2
#define MObey 3
......@@ -178,15 +175,6 @@ static void arcedit__iconmenuproc(void *handle, char *hit) {
#endif
case MCreate:
switch (hit[1]) {
#if FALSE
case MTask:
if (wimpt_complain(
os_cli(
"RMEnsure TaskWindow 0 RMLoad <Edit$Dir>.Task")) == 0) {
message_taskwindow("ShellCLI_Task");
};
break;
#endif
case MText:
s = txtedit_new("", 0xfff);
break;
......@@ -217,14 +205,9 @@ static void arcedit__iconmenuproc(void *handle, char *hit) {
break;
case MQuit:
tracef0("quit\n");
#if FALSE
if (dboxquery("Quit Edit: are you sure?") == dboxquery_YES) {
exit(0);
};
#else
if (txtedit_mayquit()) exit(0);
#endif
};
break;
}
}
static menu edit__main_menu_maker(void *handle)
......@@ -399,7 +382,7 @@ static void arcedit__bkg_events(wimp_eventstr *e, void *handle) {
s = txtedit_getstates();
while (s != 0)
{
if (s != 0 && !cistrcmp(s->filename, e->data.msg.data.print.name))
if (!cistrcmp(s->filename, e->data.msg.data.print.name))
break;
s = s->next;
}
......@@ -484,8 +467,6 @@ void edit__hotkeys(wimp_eventstr *e, void *handle) {
if (e->e == wimp_EKEY) {
if (e->data.key.chcode == akbd_Fn + 7) {
werr(FALSE, "hot key select copy!"); /* test message. */
#if FALSE
#endif
} else {
/* not recognised: pass it on. */
wimpt_noerr(wimp_processkey(e->data.key.chcode));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment