diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-03-16 14:39:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-03-16 14:39:56 (GMT) |
commit | 663171632ff30a634db7fceec2fe953bf083739a (patch) | |
tree | e4eeb7c21f9e5b06565d123ae6a934586dddcbca /macosx/tkMacOSXScrlbr.c | |
parent | e5b9589c31adba8e64aea7054478a257cc7399b0 (diff) | |
download | tk-663171632ff30a634db7fceec2fe953bf083739a.zip tk-663171632ff30a634db7fceec2fe953bf083739a.tar.gz tk-663171632ff30a634db7fceec2fe953bf083739a.tar.bz2 |
Eliminate some write-only variables in MacOSX
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r-- | macosx/tkMacOSXScrlbr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c index b6e3298..5cb8e03 100644 --- a/macosx/tkMacOSXScrlbr.c +++ b/macosx/tkMacOSXScrlbr.c @@ -592,7 +592,7 @@ UpdateControlValues( MacDrawable *macWin = (MacDrawable *)Tk_WindowId(scrollPtr->tkwin); double dViewSize; HIRect contrlRect; - short width, height; + short height; NSView *view = TkMacOSXGetNSViewForDrawable(macWin); CGFloat viewHeight = [view bounds].size.height; @@ -606,7 +606,6 @@ UpdateControlValues( contrlRect = NSRectToCGRect(frame); msPtr->info.bounds = contrlRect; - width = contrlRect.size.width; height = contrlRect.size.height - scrollPtr->arrowLength; /* |