about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-03-17T07·48+0300
committerclbot <clbot@tvl.fyi>2023-03-17T11·01+0000
commitb5f5a1595d1508cc2b74aed4428f5844e1e070eb (patch)
treea511aab7fd31a0555c898c87763fcfcf7b8a8280
parentb025ebb2a1ae989afc5ee3ae69cb920e97a4efdc (diff)
chore(tvix/eval): remove some dead code r/6020
This was commented out and forgotten during the generator refactor, oh
well.

Change-Id: I474b685159a955a846db462da0dd0067af177b04
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8321
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
-rw-r--r--tvix/eval/src/builtins/mod.rs31
1 files changed, 0 insertions, 31 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index ba31d66b11d9..c56c53e46581 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -290,29 +290,6 @@ mod pure_builtins {
         }
 
         Ok(Value::List(out.into()))
-        // list.into_iter()
-        //     .filter_map(|elem| {
-        //         let result = match vm.call_with(&pred, [elem.clone()]) {
-        //             Err(err) => return Some(Err(err)),
-        //             Ok(result) => result,
-        //         };
-
-        //         // Must be assigned to a local to avoid a borrowcheck
-        //         // failure related to the ForceResult destructor.
-        //         let result = match result.force(vm) {
-        //             Err(err) => Some(Err(vm.error(err))),
-        //             Ok(value) => match value.as_bool() {
-        //                 Ok(true) => Some(Ok(elem)),
-        //                 Ok(false) => None,
-        //                 Err(err) => Some(Err(vm.error(err))),
-        //             },
-        //         };
-
-        //         result
-        //     })
-        //     .collect::<Result<imbl::Vector<Value>, _>>()
-        //     .map(|list| Value::List(NixList::from(list)))
-        //     .map_err(Into::into)
     }
 
     #[builtin("floor")]
@@ -593,14 +570,6 @@ mod pure_builtins {
             out.insert(key, result);
         }
 
-        // let res =
-        //     attrs
-        //         .as_ref()
-        //         .into_iter()
-        //         .flat_map(|(key, value)| -> EvalResult<(NixString, Value)> {
-        //             let value = vm.call_with(&f, [key.clone().into(), value.clone()])?;
-        //             Ok((key.to_owned(), value))
-        //         });
         Ok(Value::attrs(out.into()))
     }