Remove unused variable (#919)

This commit is contained in:
Gilles Rochefort 2017-11-04 02:40:25 +01:00 committed by Davis E. King
parent 69ea3bd400
commit ca9fceb278

View File

@ -5628,9 +5628,6 @@ namespace dlib
const unsigned long padding = style->get_padding(*mfont);
// find the delta between the cursor rect and the corner of the total rect
point delta = point(cursor_rect.left(), cursor_rect.top()) - point(total_rect().left(), total_rect().top());
// now scroll us so that we can see the current cursor
scroll_to_rect(centered_rect(cursor_rect, cursor_rect.width() + padding + 6, cursor_rect.height() + 1));