From e496fd8162c79939da203e0115d80b9059d13998 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 13 Feb 2024 23:26:44 +0100 Subject: [PATCH] Remove unneeded ifdefs. --- src/Fl_Terminal.cxx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Fl_Terminal.cxx b/src/Fl_Terminal.cxx index c8bd3501ab..3c3b205667 100644 --- a/src/Fl_Terminal.cxx +++ b/src/Fl_Terminal.cxx @@ -3564,11 +3564,7 @@ void Fl_Terminal::draw(void) { This is used by the constructor to size the row/cols to fit the widget size. */ int Fl_Terminal::w_to_col(int W) const { -#if 0 - return int((float(W) / current_style_->charwidth()) + 0.0); // +.5 overshoots -#else return W / current_style_->charwidth(); -#endif } /** @@ -3576,11 +3572,7 @@ int Fl_Terminal::w_to_col(int W) const { This is used by the constructor to size the row/cols to fit the widget size. */ int Fl_Terminal::h_to_row(int H) const { -#if 0 - return int((float(H) / current_style_->fontheight()) + -0.0); // +.5 overshoots -#else return H / current_style_->fontheight(); -#endif } /**