mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
remove unused member LyXText::number_of_rows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5171 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
93f48bad12
commit
3a6bc2704a
@ -1,3 +1,9 @@
|
|||||||
|
|
||||||
|
2002-08-29 André Pönitz <poenitz@gmx.net>
|
||||||
|
|
||||||
|
* lyxtext.h:
|
||||||
|
* text2.C: remove unused member number_of_rows
|
||||||
|
|
||||||
2002-08-29 John Levon <levon@movementarian.org>
|
2002-08-29 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* BufferView_pimpl.C (dispatch): do not continue when
|
* BufferView_pimpl.C (dispatch): do not continue when
|
||||||
|
@ -67,7 +67,7 @@ public:
|
|||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
LyXText(BufferView *);
|
LyXText(BufferView *);
|
||||||
///
|
/// sets inset as owner
|
||||||
LyXText(InsetText *);
|
LyXText(InsetText *);
|
||||||
|
|
||||||
/// Destructor
|
/// Destructor
|
||||||
@ -75,8 +75,6 @@ public:
|
|||||||
|
|
||||||
void init(BufferView *, bool reinit = false);
|
void init(BufferView *, bool reinit = false);
|
||||||
///
|
///
|
||||||
mutable int number_of_rows;
|
|
||||||
///
|
|
||||||
mutable int height;
|
mutable int height;
|
||||||
///
|
///
|
||||||
mutable unsigned int width;
|
mutable unsigned int width;
|
||||||
@ -215,8 +213,7 @@ public:
|
|||||||
/** returns a pointer to a specified row. y is set to the beginning
|
/** returns a pointer to a specified row. y is set to the beginning
|
||||||
of the row
|
of the row
|
||||||
*/
|
*/
|
||||||
Row * getRow(Paragraph * par,
|
Row * getRow(Paragraph * par, lyx::pos_type pos, int & y) const;
|
||||||
lyx::pos_type pos, int & y) const;
|
|
||||||
/** returns the firstrow, this could be done with the above too but
|
/** returns the firstrow, this could be done with the above too but
|
||||||
IMO it's stupid to have to allocate a dummy y all the time I need
|
IMO it's stupid to have to allocate a dummy y all the time I need
|
||||||
the first row
|
the first row
|
||||||
|
@ -53,7 +53,7 @@ using lyx::pos_type;
|
|||||||
|
|
||||||
|
|
||||||
LyXText::LyXText(BufferView * bv)
|
LyXText::LyXText(BufferView * bv)
|
||||||
: number_of_rows(0), height(0), width(0), first_y(0),
|
: height(0), width(0), first_y(0),
|
||||||
bv_owner(bv), inset_owner(0), the_locking_inset(0),
|
bv_owner(bv), inset_owner(0), the_locking_inset(0),
|
||||||
need_break_row(0), refresh_y(0), refresh_row(0),
|
need_break_row(0), refresh_y(0), refresh_row(0),
|
||||||
status_(LyXText::UNCHANGED), firstrow(0), lastrow(0)
|
status_(LyXText::UNCHANGED), firstrow(0), lastrow(0)
|
||||||
@ -61,7 +61,7 @@ LyXText::LyXText(BufferView * bv)
|
|||||||
|
|
||||||
|
|
||||||
LyXText::LyXText(InsetText * inset)
|
LyXText::LyXText(InsetText * inset)
|
||||||
: number_of_rows(0), height(0), width(0), first_y(0),
|
: height(0), width(0), first_y(0),
|
||||||
bv_owner(0), inset_owner(inset), the_locking_inset(0),
|
bv_owner(0), inset_owner(inset), the_locking_inset(0),
|
||||||
need_break_row(0), refresh_y(0), refresh_row(0),
|
need_break_row(0), refresh_y(0), refresh_row(0),
|
||||||
status_(LyXText::UNCHANGED), firstrow(0), lastrow(0)
|
status_(LyXText::UNCHANGED), firstrow(0), lastrow(0)
|
||||||
@ -84,7 +84,7 @@ void LyXText::init(BufferView * bview, bool reinit)
|
|||||||
need_break_row = 0;
|
need_break_row = 0;
|
||||||
width = height = 0;
|
width = height = 0;
|
||||||
copylayouttype.erase();
|
copylayouttype.erase();
|
||||||
number_of_rows = first_y = refresh_y = 0;
|
first_y = refresh_y = 0;
|
||||||
status_ = LyXText::UNCHANGED;
|
status_ = LyXText::UNCHANGED;
|
||||||
} else if (firstrow)
|
} else if (firstrow)
|
||||||
return;
|
return;
|
||||||
@ -331,7 +331,6 @@ void LyXText::insertRow(Row * row, Paragraph * par,
|
|||||||
|
|
||||||
if (row == lastrow)
|
if (row == lastrow)
|
||||||
lastrow = tmprow;
|
lastrow = tmprow;
|
||||||
++number_of_rows;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -359,7 +358,6 @@ void LyXText::removeRow(Row * row) const
|
|||||||
height -= row->height(); // the text becomes smaller
|
height -= row->height(); // the text becomes smaller
|
||||||
|
|
||||||
delete row;
|
delete row;
|
||||||
--number_of_rows; // one row less
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user