Community
Participate
Working Groups
1. WARNING in /src/org/eclipse/ui/forms/widgets/Section.java (at line 367) int twidth = bounds.width - marginWidth - marginWidth; The value of the local variable twidth is not used 1. WARNING in /src/org/eclipse/ui/forms/widgets/TableWrapLayout.java (at line 254) int colSpace = tableWidth - leftMargin - rightMargin; The value of the local variable colSpace is not used 1. WARNING in /src/org/eclipse/ui/internal/forms/widgets/TextSegment.java (at line 665) int lineWidth = locator.x + lineExtent.x; The value of the local variable lineWidth is not used
Created attachment 182864 [details] Patch for TableWrapLayout colSpace was unused. It seems that the intention was to have a line int colSpace = parentWidth - maxWidth; instead of int extra = parentWidth - maxWidth; however if I do that the columns get narrower than they should be. As the code is the widths are correct when the path goes through this code. Deleting the lines which set colSpace.
Created attachment 182927 [details] Patch for Section twidth has been unused since at least Eclipse 3.3. I have removed twidth and its assignments.
Created attachment 182929 [details] Patch for TextSection The unused variable lineWidth is calculated in much the same way as lastWidth which is used. Removing lineWidth.
The three patches have been committed to HEAD, Fixed.
Verified in N20101111-2000.