Skip to content

Commit 37521d4

Browse files
author
zhourenjian
committed
Remove "System.out.println" expressions
1 parent 94637b4 commit 37521d4

File tree

20 files changed

+1
-102
lines changed

20 files changed

+1
-102
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Button.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,6 @@ public boolean getSelection () {
644644
return (state & OS.BST_CHECKED) != 0;
645645
*/
646646
if ((style & SWT.TOGGLE) != 0) {
647-
//System.out.println(btnHandle.className);
648647
return OS.existedCSSClass(btnHandle, "button-selected");
649648
} else if ((style & (SWT.RADIO | SWT.CHECK)) != 0) {
650649
return btnHandle.checked;
@@ -864,11 +863,9 @@ void setDefault (boolean value) {
864863
OS.SendMessage (handle, OS.BM_SETSTYLE, bits, 1);
865864
*/
866865
if (value) {
867-
System.out.println("Set default.");
868866
try {
869867
handle.focus();
870868
} catch (Error e) { }
871-
System.out.println("Set default ok.");
872869
}
873870
}
874871

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Combo.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ void createSelect() {
672672
void configureSelect() {
673673
selectInput.onchange = new RunnableCompatibility() {
674674
public void run() {
675-
// System.out.println("select changed!" + selectInput.selectedIndex);
676675
noSelection = false;
677676
updateSelection();
678677
// if(!isSimple)
@@ -1735,8 +1734,6 @@ void setBounds (int x, int y, int width, int height, int flags) {
17351734

17361735
}
17371736
selectInput.style.width = width + "px";
1738-
1739-
// System.out.println("combo left " + this.left + " " + this.top + " textInput " +dropDownButton.style.width + " " + dropDownButton.style.height);
17401737
}
17411738

17421739
/* (non-Javadoc)

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Composite.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
247247
changed |= (state & LAYOUT_CHANGED) != 0;
248248
state &= ~LAYOUT_CHANGED;
249249
size = layout.computeSize (this, wHint, hHint, changed);
250-
// System.out.println(wHint + "," + hHint + "," + changed);
251-
// System.out.println(size);
252250
} else {
253251
size = new Point (wHint, hHint);
254252
}
@@ -259,9 +257,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
259257
if (size.y == 0) size.y = DEFAULT_HEIGHT;
260258
if (wHint != SWT.DEFAULT) size.x = wHint;
261259
if (hHint != SWT.DEFAULT) size.y = hHint;
262-
// System.out.println("before trimming " + size);
263260
Rectangle trim = computeTrim (0, 0, size.x, size.y);
264-
// System.out.println("after trimming " + trim);
265261
return new Point (trim.width, trim.height);
266262
}
267263

@@ -604,7 +600,6 @@ public void layout (boolean changed, boolean all) {
604600
*/
605601
public void layout (Control [] changed) {
606602
checkWidget ();
607-
// System.out.print("control");
608603
if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT);
609604
// Date d = new Date();
610605
int length = changed.length;
@@ -669,18 +664,13 @@ void markLayout (boolean changed, boolean all) {
669664

670665
Point minimumSize (int wHint, int hHint, boolean changed) {
671666
Control [] children = _getChildren ();
672-
//System.out.println("minimumSize@Composite");
673667
int width = 0, height = 0;
674668
int length = children.length;
675669
for (int i=0; i< length; i++) {
676-
//System.out.println(i + "..." + children [i]);
677670
Rectangle rect = children [i].getBounds ();
678671
width = Math.max (width, rect.x + rect.width);
679672
height = Math.max (height, rect.y + rect.height);
680-
//System.out.println(children[i].getBounds);
681-
//System.out.println(rect);
682673
}
683-
//System.out.println(new Point (width, height));
684674
return new Point (width, height);
685675
}
686676

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Control.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,6 @@ public void pack () {
16021602
public void pack (boolean changed) {
16031603
checkWidget ();
16041604
Point computeSize = computeSize (SWT.DEFAULT, SWT.DEFAULT, changed);
1605-
// System.out.println(computeSize);
16061605
setSize (computeSize);
16071606
}
16081607

@@ -2710,7 +2709,6 @@ public void setSize (int width, int height) {
27102709
public void setSize (Point size) {
27112710
checkWidget ();
27122711
if (size == null) error (SWT.ERROR_NULL_ARGUMENT);
2713-
// System.err.println(size);
27142712
setSize (size.x, size.y);
27152713
}
27162714

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/CoolBar.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
181181
rowWidth += rbBand.cxIdeal + getMargin (i) + separator;
182182
*/
183183
if (items[i].wrap) {
184-
//System.out.println("wrap...");
185184
width = Math.max(width, rowWidth - separator);
186185
rowWidth = 0;
187186
height += rowHeight;
@@ -688,7 +687,6 @@ boolean moveDelta(int index, int dx, int dy) {
688687
setBounds (left, top, Math.max (0, width), Math.max (0, h), SWT.NONE);
689688
sendEvent(SWT.Resize);
690689
}
691-
//System.out.println("Length:" + items.length);
692690
return needLayout;
693691
}
694692

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Group.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ public Rectangle getClientArea () {
313313
int border = getBorderWidth();
314314
int width = this.width - border * 2 - CLIENT_INSET * 2;
315315
int height = this.height - border * 2 - y - CLIENT_INSET;
316-
//System.out.println("-->" + new Rectangle (x, y, width, height));
317316
// if (groupText == null || groupText.length() == 0) {
318317
// return new Rectangle (x, y / 2, width, height);
319318
// } else {

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Link.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -817,22 +817,6 @@ public void setText (String string) {
817817
anchors = new Element[0];
818818
OS.clearChildren(handle);
819819
parse (string, handle);
820-
/*
821-
System.out.println(cachedText);
822-
// OS.insertText(handle, cachedText);
823-
System.out.println("ids==");
824-
for (int i = 0; i < ids.length; i++) {
825-
System.out.println(i + "/" + ids[i]);
826-
}
827-
System.out.println("mnemonics==");
828-
for (int i = 0; i < mnemonics.length; i++) {
829-
System.out.println(i + "/" + mnemonics[i]);
830-
}
831-
System.out.println("offsets==");
832-
for (int i = 0; i < offsets.length; i++) {
833-
System.out.println(i + "/" + offsets[i]);
834-
}
835-
*/
836820
/*
837821
if (OS.COMCTL32_MAJOR >= 6) {
838822
TCHAR buffer = new TCHAR (getCodePage (), string, true);

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Menu.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,8 @@ void createHandle () {
439439
btnFocus.onkeydown = new RunnableCompatibility() {
440440
public void run() {
441441
HTMLEvent evt = (HTMLEvent) getEvent();
442-
//System.out.println(evt.keyCode);
443442
MenuItem[] menuItems = items;
444443
int index = currentIndex;
445-
//System.out.println(evt.keyCode);
446444
if (evt.keyCode == 13 || evt.keyCode == 10) {
447445
if (index != -1) {
448446
Element target = menuItems[index].handle;
@@ -541,7 +539,6 @@ public void run() {
541539
};
542540
btnFocus.onblur = new RunnableCompatibility() {
543541
public void run() {
544-
//System.out.println(Menu.this + "::" + "blur");
545542
long time = new Date().getTime();
546543
if (time - lastFocusdTime > 20) {
547544
if ((style & SWT.BAR) == 0) {
@@ -1019,7 +1016,6 @@ void fixMenus (Decorations newParent) {
10191016
textWidth = width;
10201017
}
10211018
}
1022-
//System.out.println(textWidth + "//" + accelWidth);
10231019
w = 16 + textWidth + 16 + accelWidth + 16 + 8; // 8 for extra safe width
10241020
if (handle.className.indexOf("menu-enable-status") != -1 &&
10251021
handle.className.indexOf("menu-enable-image") != -1) {
@@ -1034,7 +1030,6 @@ void fixMenus (Decorations newParent) {
10341030
//w = OS.getContainerWidth(hdl2);
10351031
h = pt2.y - pt1.y + OS.getContainerHeight(hdl2);
10361032
}
1037-
//System.out.println(w + 4);
10381033
return new Rectangle(x - 2, y - 2, w + 4, h + 4);
10391034
}
10401035
}

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/MenuItem.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,6 @@ void showSubMenu() {
13791379
new Rectangle(coordinate.x, coordinate.y, w, h),
13801380
bounds.width, bounds.height, 0);
13811381
menu.handle.style.width = rect.width + "px";
1382-
//System.out.println(rect);
13831382
//menu.setLocation (rect.x, rect.y);
13841383
menu.x = rect.x;
13851384
menu.y = rect.y;

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Sash.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ public boolean dragEnded(DragEvent e) {
201201
event.height = height;
202202
event.widget = Sash.this;
203203
event.item = Sash.this;
204-
// System.out.println("drop");
205204
sendEvent (SWT.Selection, event);
206205
if (event.doit) {
207206
if ((style & SWT.SMOOTH) != 0) {

0 commit comments

Comments
 (0)