Skip to content

Commit

Permalink
Removing wrongfully commited code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWM committed Aug 28, 2024
1 parent b124ac9 commit 885dbc4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/fl_labeltype.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,6 @@ void Fl::set_labeltype(Fl_Labeltype t,Fl_Label_Draw_F* f,Fl_Label_Measure_F*m)
/** Draws a label with arbitrary alignment in an arbitrary box. */
void Fl_Label::draw(int X, int Y, int W, int H, Fl_Align align) const {
if (!value && !image) return;
const Fl_Align FL_ALIGN_CENTER = 0x0000;
const Fl_Align FL_ALIGN_TOP = 0x0001;
const Fl_Align FL_ALIGN_BOTTOM = 0x0002;
const Fl_Align FL_ALIGN_LEFT = 0x0004;
const Fl_Align FL_ALIGN_RIGHT = 0x0008;
const Fl_Align FL_ALIGN_TOP_LEFT = FL_ALIGN_TOP | FL_ALIGN_LEFT;
const Fl_Align FL_ALIGN_TOP_RIGHT = FL_ALIGN_TOP | FL_ALIGN_RIGHT;
const Fl_Align FL_ALIGN_BOTTOM_LEFT = FL_ALIGN_BOTTOM | FL_ALIGN_LEFT;
const Fl_Align FL_ALIGN_BOTTOM_RIGHT = FL_ALIGN_BOTTOM | FL_ALIGN_RIGHT;
const Fl_Align FL_ALIGN_LEFT_TOP = 0x0007;
const Fl_Align FL_ALIGN_RIGHT_TOP = 0x000b;
const Fl_Align FL_ALIGN_LEFT_BOTTOM = 0x000d;
const Fl_Align FL_ALIGN_RIGHT_BOTTOM = 0x000e;
switch (align&(FL_ALIGN_TOP|FL_ALIGN_BOTTOM)) {
case 0: Y += v_margin_; H -= 2*v_margin_; break;
case FL_ALIGN_TOP: Y += v_margin_; H -= v_margin_; break;
Expand Down

0 comments on commit 885dbc4

Please sign in to comment.