diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-09 14:40:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-09 15:08:39 +0200 |
commit | 3c64e4bbdb48942483d68a429d60ae9e57094ca6 (patch) | |
tree | 1bb1b80cea44f00aff6d1f0d59afd8c159b7030c /vcl | |
parent | c3bcd36d1081bca13ecc0ce5179fd31cc24b761a (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: I54691786167fd17b115460f3329573f0c2f023ed
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index 9a30ed6d838a..1cf9c2eb2d4a 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -323,12 +323,8 @@ void GtkSalGraphics::PaintScrollbar(GtkStyleContext *context, "has-backward-stepper", &has_backward, "has-secondary-backward-stepper", &has_backward2, nullptr ); gint magic = trough_border ? 1 : 0; - gint nFirst = 0; gint slider_side = slider_width + (trough_border * 2); - if ( has_backward ) nFirst += 1; - if ( has_forward2 ) nFirst += 1; - if ( nPart == PART_DRAW_BACKGROUND_HORZ ) { scrollbarRect.Move( 0, (scrollbarRect.GetHeight() - slider_side) / 2 ); |