Skip to content

Commit 8c176e7

Browse files
Remove some old, commented out code
1 parent f9e1dbd commit 8c176e7

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

app/src/processing/app/EditorHeader.java

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ public class EditorHeader extends JComponent {
7272

7373
static Image[][] pieces;
7474

75-
//
76-
7775
Image offscreen;
7876
int sizeW, sizeH;
7977
int imageW, imageH;
@@ -236,7 +234,6 @@ public void rebuild() {
236234

237235

238236
public void rebuildMenu() {
239-
//System.out.println("rebuilding");
240237
if (menu != null) {
241238
menu.removeAll();
242239

@@ -246,54 +243,9 @@ public void rebuildMenu() {
246243
popup = menu.getPopupMenu();
247244
add(popup);
248245
popup.setLightWeightPopupEnabled(true);
249-
250-
/*
251-
popup.addPopupMenuListener(new PopupMenuListener() {
252-
public void popupMenuCanceled(PopupMenuEvent e) {
253-
// on redraw, the isVisible() will get checked.
254-
// actually, a repaint may be fired anyway, so this
255-
// may be redundant.
256-
repaint();
257-
}
258-
259-
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { }
260-
public void popupMenuWillBecomeVisible(PopupMenuEvent e) { }
261-
});
262-
*/
263246
}
264247
JMenuItem item;
265248

266-
// maybe this shouldn't have a command key anyways..
267-
// since we're not trying to make this a full ide..
268-
//item = Editor.newJMenuItem("New", 'T');
269-
270-
/*
271-
item = Editor.newJMenuItem("Previous", KeyEvent.VK_PAGE_UP);
272-
item.addActionListener(new ActionListener() {
273-
public void actionPerformed(ActionEvent e) {
274-
System.out.println("prev");
275-
}
276-
});
277-
if (editor.sketch != null) {
278-
item.setEnabled(editor.sketch.codeCount > 1);
279-
}
280-
menu.add(item);
281-
282-
item = Editor.newJMenuItem("Next", KeyEvent.VK_PAGE_DOWN);
283-
item.addActionListener(new ActionListener() {
284-
public void actionPerformed(ActionEvent e) {
285-
System.out.println("ext");
286-
}
287-
});
288-
if (editor.sketch != null) {
289-
item.setEnabled(editor.sketch.codeCount > 1);
290-
}
291-
menu.add(item);
292-
293-
menu.addSeparator();
294-
*/
295-
296-
//item = new JMenuItem("New Tab");
297249
item = Editor.newJMenuItemShift(tr("New Tab"), 'N');
298250
item.addActionListener(new ActionListener() {
299251
public void actionPerformed(ActionEvent e) {
@@ -306,12 +258,6 @@ public void actionPerformed(ActionEvent e) {
306258
item.addActionListener(new ActionListener() {
307259
public void actionPerformed(ActionEvent e) {
308260
editor.getSketch().handleRenameCode();
309-
/*
310-
// this is already being called by nameCode(), the second stage of rename
311-
if (editor.sketch.current == editor.sketch.code[0]) {
312-
editor.sketchbook.rebuildMenus();
313-
}
314-
*/
315261
}
316262
});
317263
menu.add(item);
@@ -330,8 +276,6 @@ public void actionPerformed(ActionEvent event) {
330276

331277
menu.addSeparator();
332278

333-
// KeyEvent.VK_LEFT and VK_RIGHT will make Windows beep
334-
335279
item = new JMenuItem(tr("Previous Tab"));
336280
KeyStroke ctrlAltLeft = KeyStroke
337281
.getKeyStroke(KeyEvent.VK_LEFT, Editor.SHORTCUT_ALT_KEY_MASK);

0 commit comments

Comments
 (0)