From ca9fceb2782ed0462093f0ce724b14c44c0a328f Mon Sep 17 00:00:00 2001 From: Gilles Rochefort Date: Sat, 4 Nov 2017 02:40:25 +0100 Subject: [PATCH] Remove unused variable (#919) --- dlib/gui_widgets/widgets.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlib/gui_widgets/widgets.cpp b/dlib/gui_widgets/widgets.cpp index 4059c85a6..bd45aaa85 100644 --- a/dlib/gui_widgets/widgets.cpp +++ b/dlib/gui_widgets/widgets.cpp @@ -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));