Remove unused code and comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20485 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-09-25 09:35:36 +00:00
parent a622a0645c
commit 585b3217f5

View File

@ -1116,8 +1116,6 @@ bool BufferView::workAreaDispatch(FuncRequest const & cmd0)
// not expose the button for redraw. We adjust here the metrics dimension
// to enable a full redraw in any case as this is not costly.
TextMetrics & tm = text_metrics_[&buffer_.text()];
tm.editXY(cur, cmd.x, cmd.y);
// collect cursor paragraph iter bounds
std::pair<pit_type, ParagraphMetrics const *> firstpm = tm.first();
std::pair<pit_type, ParagraphMetrics const *> lastpm = tm.last();
int y1 = firstpm.second->position() - firstpm.second->ascent();