From 37c4de1ad69d8d46908fb8878efc69dc47e51ccc Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Sat, 3 Sep 2022 18:35:04 -0700 Subject: [PATCH] Removes stderr prints from spectate --- plugins/spectate.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plugins/spectate.cpp b/plugins/spectate.cpp index 86ba199f8..3bd1fc517 100644 --- a/plugins/spectate.cpp +++ b/plugins/spectate.cpp @@ -162,13 +162,9 @@ DFhackCExport command_result plugin_onupdate(color_ostream &out) { Gui::getCurViewscreen(true)->feed_key(interface_key::CLOSE_MEGA_ANNOUNCEMENT); } if (disengage_enabled) { - fprintf(stderr,"A: pre-segfault-potential\n"); - fflush(stderr); if (our_dorf && our_dorf->id != df::global::ui->follow_unit){ plugin_enable(out, false); } - fprintf(stderr,"A: post-segfault-potential\n"); - fflush(stderr); } return DFHack::CR_OK; } @@ -270,8 +266,6 @@ void onTick(color_ostream& out, void* ptr) { df::global::ui->follow_unit = -1; } } - fprintf(stderr,"B: pre-segfault-potential\n"); - fflush(stderr); if (!following_dwarf || (focus_jobs_enabled && !job_watched) || (tick - timestamp) > (int32_t)tick_threshold) { std::vector dwarves; for (auto unit: df::global::world->units.active) { @@ -292,8 +286,6 @@ void onTick(color_ostream& out, void* ptr) { } } } - fprintf(stderr,"B: post-segfault-potential\n"); - fflush(stderr); } // every new worked job needs to be considered