Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-01-18 23:27:20 +0000
committerSergey Prigogin2013-01-18 23:27:20 +0000
commitede6b6547983a2c140b47d3792ca6fd0bb7f6624 (patch)
tree88b55dd1df7eff3238fa74055e8a6d67d676b90d
parentd51e0799513fd9a6dd2b1c057882c7fba6c9e46c (diff)
downloadorg.eclipse.cdt-ede6b6547983a2c140b47d3792ca6fd0bb7f6624.tar.gz
org.eclipse.cdt-ede6b6547983a2c140b47d3792ca6fd0bb7f6624.tar.xz
org.eclipse.cdt-ede6b6547983a2c140b47d3792ca6fd0bb7f6624.zip
Cosmetics.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/FileContent.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/FileContent.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/FileContent.java
index c9821eaacf1..bae9031b403 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/FileContent.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/FileContent.java
@@ -13,7 +13,6 @@
package org.eclipse.cdt.core.parser;
import java.io.File;
-import java.io.InputStream;
import org.eclipse.cdt.core.dom.ast.IASTFileLocation;
import org.eclipse.cdt.core.index.IIndexFileLocation;
@@ -139,14 +138,9 @@ public abstract class FileContent {
return null;
long fileReadTime = System.currentTimeMillis();
- String path = reader.getPath();
- File file = new File(path);
-
CharArray chars = new CharArray(reader.buffer);
-
-
- FileContent fileContent = new InternalFileContent(path, chars , file.lastModified(), file.length(), fileReadTime);
-
- return fileContent;
+ String filePath = reader.getPath();
+ File file = new File(filePath);
+ return new InternalFileContent(filePath, chars, file.lastModified(), file.length(), fileReadTime);
}
}

Back to the top