Change some format and remove some unused codes.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1719 6f19259b-4bc3-4df7-8a09-765794883524
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java b/Tools/Java/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java
index 85ba166..2ab7a17 100644
--- a/Tools/Java/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java
+++ b/Tools/Java/Source/GenBuild/org/tianocore/build/global/GenBuildLogger.java
@@ -44,17 +44,17 @@
public class GenBuildLogger extends DefaultLogger implements LogMethod {
Project project = null;
- ///
+
+ ///
/// Time of the start of the build
- ///
+ ///
private long startTime = System.currentTimeMillis();
+
///
/// flag to present whether cache all msg or not
/// true means to cache.
///
private static boolean flag = false;
-
- private static boolean enableFlag = true;
private static Map<FpdModuleIdentification, List<String>> map = new LinkedHashMap<FpdModuleIdentification, List<String> >(256);
@@ -79,6 +79,7 @@
if (this.project == null) {
return;
}
+
//
// If msgLevel is always print, then print it
//
@@ -98,7 +99,7 @@
case EdkLog.EDK_INFO:
log(msgSource, msg, Project.MSG_INFO);
break;
- case EdkLog.EDK_VERBOSE:
+ case EdkLog.EDK_VERBOSE:
log(msgSource, msg, Project.MSG_VERBOSE);
break;
case EdkLog.EDK_DEBUG:
@@ -181,7 +182,8 @@
}
public void messageLogged(BuildEvent event) {
- int currentLevel = event.getPriority();
+
+ int currentLevel = event.getPriority();
//
// If current level is upper than Ant Level, skip it
//
@@ -233,10 +235,6 @@
flag = enable;
}
- public static void maskAllLog(boolean enable) {
- enableFlag = !enable;
- }
-
protected synchronized void log(String message) {
//
// cache log