Skip to content

Commit

Permalink
Remove unneeded ifdefs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWM committed Feb 13, 2024
1 parent 0f3101b commit e496fd8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Fl_Terminal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3564,23 +3564,15 @@ 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
}

/**
Given a height in pixels, return number of rows that "fits" into that area.
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
}

/**
Expand Down

0 comments on commit e496fd8

Please sign in to comment.