mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +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>
|
||||
|
||||
* BufferView_pimpl.C (dispatch): do not continue when
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
|
||||
/// Constructor
|
||||
LyXText(BufferView *);
|
||||
///
|
||||
/// sets inset as owner
|
||||
LyXText(InsetText *);
|
||||
|
||||
/// Destructor
|
||||
@ -75,8 +75,6 @@ public:
|
||||
|
||||
void init(BufferView *, bool reinit = false);
|
||||
///
|
||||
mutable int number_of_rows;
|
||||
///
|
||||
mutable int height;
|
||||
///
|
||||
mutable unsigned int width;
|
||||
@ -215,8 +213,7 @@ public:
|
||||
/** returns a pointer to a specified row. y is set to the beginning
|
||||
of the row
|
||||
*/
|
||||
Row * getRow(Paragraph * par,
|
||||
lyx::pos_type pos, int & y) const;
|
||||
Row * getRow(Paragraph * par, lyx::pos_type pos, int & y) const;
|
||||
/** 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
|
||||
the first row
|
||||
|
@ -53,7 +53,7 @@ using lyx::pos_type;
|
||||
|
||||
|
||||
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),
|
||||
need_break_row(0), refresh_y(0), refresh_row(0),
|
||||
status_(LyXText::UNCHANGED), firstrow(0), lastrow(0)
|
||||
@ -61,7 +61,7 @@ LyXText::LyXText(BufferView * bv)
|
||||
|
||||
|
||||
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),
|
||||
need_break_row(0), refresh_y(0), refresh_row(0),
|
||||
status_(LyXText::UNCHANGED), firstrow(0), lastrow(0)
|
||||
@ -84,7 +84,7 @@ void LyXText::init(BufferView * bview, bool reinit)
|
||||
need_break_row = 0;
|
||||
width = height = 0;
|
||||
copylayouttype.erase();
|
||||
number_of_rows = first_y = refresh_y = 0;
|
||||
first_y = refresh_y = 0;
|
||||
status_ = LyXText::UNCHANGED;
|
||||
} else if (firstrow)
|
||||
return;
|
||||
@ -331,7 +331,6 @@ void LyXText::insertRow(Row * row, Paragraph * par,
|
||||
|
||||
if (row == lastrow)
|
||||
lastrow = tmprow;
|
||||
++number_of_rows;
|
||||
}
|
||||
|
||||
|
||||
@ -359,7 +358,6 @@ void LyXText::removeRow(Row * row) const
|
||||
height -= row->height(); // the text becomes smaller
|
||||
|
||||
delete row;
|
||||
--number_of_rows; // one row less
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user