]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/ModuleReader.java
Add Critic.java
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / ModuleReader.java
index 46fb4994bb39c8362308f4d70c1246ca27b912fd..4eb32463311b1f94b16e347644684c6170be2e47 100644 (file)
@@ -54,17 +54,13 @@ public class ModuleReader {
        }\r
        \r
        public void readInf(String name) throws Exception {\r
-               System.out.println("Parsing INF file: " + name);\r
-               BufferedReader rd = new BufferedReader(new FileReader(modulepath + File.separator + name));\r
-               String line;\r
+               System.out.println("\nParsing INF file: " + name);\r
                String wholeline;\r
-               String[] linecontext;\r
-               boolean inSrc = false;\r
                Matcher mtrinfequation;\r
                Matcher mtrsection;\r
                Matcher mtrfilename;\r
 \r
-               wholeline = Common.sourcefiletostring(modulepath + File.separator + name);\r
+               wholeline = Common.file2string(modulepath + File.separator + name);\r
                mtrsection = ptnsection.matcher(wholeline);\r
                while (mtrsection.find()) {\r
                        if (mtrsection.group(1).matches("defines")) {\r