summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-03-11 14:38:02 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-03-11 14:38:02 +0100
commit8a7d4c9f610824fb203ef63730525dd474f03c34 (patch)
treeb6460ec759e6250c7ce81e32c5a3c6c188facb89 /fluid
parent55132049c78694cae34d1d17ed20941be86cc965 (diff)
Remove CodeWarrior "support"
Metrowerks CodeWarrior was an ancient macOS compiler (discontinued since 2005) that defined the macro __MWERKS__. Code using this macro and several comments have been removed.
Diffstat (limited to 'fluid')
-rw-r--r--fluid/fluid.cxx23
1 files changed, 3 insertions, 20 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index c80d35140..8c4df1e3c 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -3,17 +3,17 @@
//
// FLUID main entry for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2018 by Bill Spitzak and others.
+// Copyright 1998-2020 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
// Please report all bugs and problems on the following page:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/str.php
//
#include <FL/Fl.H>
@@ -1480,7 +1480,6 @@ static bool prepare_shell_command(const char * &command) { // common pre-shell
return true;
}
-#if !defined(__MWERKS__)
// Support the full piped shell command...
void
shell_pipe_cb(FL_SOCKET, void*) {
@@ -1537,22 +1536,6 @@ do_shell_command(Fl_Return_Button*, void*) {
while (shell_run_window->shown()) Fl::wait();
}
-#else
-// Just do basic shell command stuff, no status window...
-void
-do_shell_command(Fl_Return_Button*, void*) {
- const char *command; // Command to run
- int status; // Status from command...
-
- if (!prepare_shell_command(command)) return;
-
- if ((status = system(command)) != 0) {
- fl_alert("Shell command returned status %d!", status);
- } else if (completion_button->value()) {
- fl_message("Shell command completed successfully!");
- }
-}
-#endif // !__MWERKS__
void
show_shell_window() {