From 85c1959240deef56928221fc29ceda9b03506e4c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 12 Sep 2022 15:10:54 +0200 Subject: [PATCH] Remove some FIXMEs --- src/libexpr/eval.cc | 4 ++-- src/libexpr/parser.y | 6 ------ src/libexpr/primops.cc | 1 - src/libexpr/tests/json.cc | 4 +--- src/libexpr/value-to-json.cc | 1 - 5 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index f3d2b79d3..8c2b680ec 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -532,12 +532,12 @@ EvalState::~EvalState() void EvalState::allowPath(const Path & path) { - rootFS->allowPath(CanonPath(path)); // FIXME + rootFS->allowPath(CanonPath(path)); } void EvalState::allowPath(const StorePath & storePath) { - rootFS->allowPath(CanonPath(store->toRealPath(storePath))); // FIXME + rootFS->allowPath(CanonPath(store->toRealPath(storePath))); } void EvalState::allowAndSetStorePathString(const StorePath & storePath, Value & v) diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index 5b868a4cf..f119e8661 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -509,11 +509,6 @@ string_parts_interpolated path_start : PATH { SourcePath path { data->basePath.accessor, CanonPath({$1.p, $1.l}, data->basePath.path) }; - #if 0 - /* add back in the trailing '/' to the first segment */ - if ($1.p[$1.l-1] == '/' && $1.l > 1) - path.path += "/"; - #endif $$ = new ExprPath(std::move(path)); } | HPATH { @@ -700,7 +695,6 @@ Expr * EvalState::parseExprFromFile(const SourcePath & path, std::shared_ptrprintStorePath( state.copyPathToStore(context, v.path())));