mirror of https://github.com/acidanthera/audk.git
Coding Style - decomment
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1849 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1f0b4e9cb0
commit
9dcf28619a
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -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<String> hash, String show) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -133,31 +133,6 @@ public class MsaOwner {
|
|||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
private final boolean installProtocols () {
|
||||
if (mapprotocols.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
Set<String> setprotocols = mapprotocols.keySet();
|
||||
ProtocolsDocument.Protocols.Protocol protocol;
|
||||
Iterator<String> 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<String> setfilename = mapfilenames.keySet();
|
||||
FilenameDocument.Filename filename;
|
||||
List<Enum> arch = new ArrayList<Enum>();
|
||||
Iterator<String> 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<FilenameDocument.Filename> fileit = sourcefiles.getFilenameList().iterator();
|
||||
while (fileit.hasNext()) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue