From 9dcf28619ab48afa1b07b3046d2ac7df7b5582a5 Mon Sep 17 00:00:00 2001 From: alfred Date: Fri, 27 Oct 2006 05:43:55 +0000 Subject: [PATCH] Coding Style - decomment git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1849 6f19259b-4bc3-4df7-8a09-765794883524 --- .../org/tianocore/migration/FirstPanel.java | 7 --- .../org/tianocore/migration/Func.java | 11 ---- .../tianocore/migration/MigrationTool.java | 2 - .../org/tianocore/migration/ModuleReader.java | 8 --- .../org/tianocore/migration/MsaOwner.java | 52 ------------------- .../tianocore/migration/MsaTreeEditor.java | 32 ------------ 6 files changed, 112 deletions(-) diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/FirstPanel.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/FirstPanel.java index 6b899c89d0..0de680de24 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/FirstPanel.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/FirstPanel.java @@ -251,11 +251,6 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList private static final FirstPanel init() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - //UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); - //UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); - //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); - //UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); - //UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel"); } catch (Exception e) { System.out.println(e.getMessage()); } @@ -264,8 +259,6 @@ public final class FirstPanel extends JPanel implements ActionListener, ItemList frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); FirstPanel fp = new FirstPanel(); - //fp.setLayout(new GridBagLayout()); - //fp.setLayout(new BoxLayout(fp, BoxLayout.Y_AXIS)); fp.setOpaque(true); frame.setContentPane(fp); diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/Func.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/Func.java index 0154fc83dd..742d7ac98d 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/Func.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/Func.java @@ -52,15 +52,4 @@ public class Func { } return temp; } - /* - public static String registerFuncD(Matcher mtr, ModuleInfo mi, Database db) { - String temp = null; - - temp = mtr.group(1); // both changed and not changed funcd are registered , for finding all the non-local function calls - if (!reservedwords.contains(temp)) { - mi.hashfuncd.add(temp); - } - return temp; - } - */ } diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/MigrationTool.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/MigrationTool.java index 1ab5bbffb2..a0695b1956 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/MigrationTool.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/MigrationTool.java @@ -61,8 +61,6 @@ public class MigrationTool { MigrationTool.ui.println("Errors Left : " + MigrationTool.db.error); MigrationTool.ui.println("Complete!"); - //MigrationTool.ui.println("Your R9 module was placed here: " + mi.modulepath + File.separator + "result"); - //MigrationTool.ui.println("Your logfile was placed here: " + mi.modulepath); } private static final void show(Set hash, String show) { diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java index 05620ca5ab..f6cfa85582 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java @@ -192,7 +192,6 @@ public final class ModuleReader implements Common.ForDoAll { } } - //CommentOutNonLocalHFile(); Common.toDoAll(mi.temppath, this, Common.FILE); parsePreProcessedSourceCode(); @@ -200,13 +199,6 @@ public final class ModuleReader implements Common.ForDoAll { } private final void parsePreProcessedSourceCode() throws Exception { - //Cl cl = new Cl(modulepath); - //cl.execute("Fat.c"); - //cl.generateAll(preprocessedccodes); - // - //System.out.println("Note!!!! The CL is not implemented now , pls do it manually!!! RUN :"); - //System.out.println("cl " + modulepath + "\\temp\\*.c" + " -P"); - //String[] list = new File(modulepath + File.separator + "temp").list(); // without CL , add BufferedReader rd = null; String ifile = null; String line = null; diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaOwner.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaOwner.java index 7aa90da6ba..d2c20b3b23 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaOwner.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaOwner.java @@ -133,31 +133,6 @@ public class MsaOwner { return true; } - /* - private final boolean installProtocols () { - if (mapprotocols.isEmpty()) { - return false; - } - Set setprotocols = mapprotocols.keySet(); - ProtocolsDocument.Protocols.Protocol protocol; - Iterator it = setprotocols.iterator(); - while (it.hasNext()) { - protocol = protocols.addNewProtocol(); - protocol.setProtocolCName(it.next()); - protocol.setUsage(mapprotocols.get(protocol.getProtocolCName())); - } - return true; - } - - public final boolean addProtocols (String protocol, UsageTypes.Enum usage) { - if (mapprotocols.containsKey(protocol)) { - return false; - } else { - mapprotocols.put(protocol, usage); - return true; - } - } - */ public final boolean addProtocol (String proname, UsageTypes.Enum usage) { if (protocols == null) { protocols = msa.addNewProtocols(); @@ -178,33 +153,6 @@ public class MsaOwner { return true; } - /* - private final boolean installHashFilename () { - if (mapfilenames.isEmpty()) { - return false; - } - Set setfilename = mapfilenames.keySet(); - FilenameDocument.Filename filename; - List arch = new ArrayList(); - Iterator it = setfilename.iterator(); - while (it.hasNext()) { - filename = sourcefiles.addNewFilename(); - filename.setStringValue(it.next()); - arch.add(mapfilenames.get(filename.getStringValue())); - filename.setSupArchList(arch); - } - return true; - } - - public final boolean addSourceFile (String filename, Enum arch) { // dummy & null how to imply? - if (mapfilenames.containsKey(filename)) { - return false; - } else { - mapfilenames.put(filename, arch); - return true; - } - } - */ public final boolean addSourceFile (String name, Enum en) { Iterator fileit = sourcefiles.getFilenameList().iterator(); while (fileit.hasNext()) { diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaTreeEditor.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaTreeEditor.java index 29dfd88534..4cd60ab5dc 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaTreeEditor.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaTreeEditor.java @@ -13,38 +13,6 @@ public class MsaTreeEditor extends JPanel { */ private static final long serialVersionUID = 3169905938472150649L; - private -/* - MsaTreeEditor(ModuleInfo m, UI u, ModuleSurfaceAreaDocument md) { - mi = m; - ui = u; - msadoc = md; - - //rootNode = msadoc.getDomNode(); - rootNode = new DefaultMutableTreeNode("Root Node"); - treeModel = new DefaultTreeModel(rootNode); - - tree = new JTree(treeModel); - tree.setEditable(true); - tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); - tree.setShowsRootHandles(false); - tree.addMouseListener(mouseadapter); - - JScrollPane scrollPane = new JScrollPane(tree); - add(scrollPane); - - popupmenu = new JPopupMenu(); - menuitemadd = new JMenuItem("addNode"); - menuitemdel = new JMenuItem("deleteNode"); - popupmenu.add(menuitemadd); - popupmenu.add(menuitemdel); - menuitemadd.addActionListener(actionListener); - menuitemdel.addActionListener(actionListener); - - addNode(rootNode, "1st"); - addNode(rootNode, "2nd"); - } -*/ MsaTreeEditor() throws Exception { rootNode = new DefaultMutableTreeNode("Root Node"); treeModel = new DefaultTreeModel(rootNode); -- 2.39.2