about summary refs log tree commit diff
path: root/src/libexpr/parser.y
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-03-31T16·14+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-03-31T16·14+0000
commit55e207b2dc43e426bd0dfbc2065b8853a1fc59b0 (patch)
tree435a8dd5a321b4ac503e47ef011033d36bc543ab /src/libexpr/parser.y
parent3d94be61ea562dea2098b6570f711386179913ef (diff)
* Cache parse trees to prevent repeated parsing of imported Nix
  expressions.

Diffstat (limited to 'src/libexpr/parser.y')
-rw-r--r--src/libexpr/parser.y6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index 2f0c9db3f33e..3a56c2627c48 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -526,12 +526,6 @@ Expr parseExprFromFile(EvalState & state, Path path)
 {
     assert(path[0] == '/');
 
-#if 0
-    /* Perhaps this is already an imploded parse tree? */
-    Expr e = ATreadFromNamedFile(path.c_str());
-    if (e) return e;
-#endif
-
     /* If `path' is a symlink, follow it.  This is so that relative
        path references work. */
     struct stat st;