diff --git a/nac3core/src/codegen/expr.rs b/nac3core/src/codegen/expr.rs
index 8b72bee5..66624162 100644
--- a/nac3core/src/codegen/expr.rs
+++ b/nac3core/src/codegen/expr.rs
@@ -34,19 +34,14 @@ use super::{
},
types::{ndarray::NDArrayType, ListType},
values::{
- ndarray::{NDArrayValue, RustNDIndex},
- ArrayLikeIndexer, ArrayLikeValue, ListValue, ProxyValue, RangeValue,
- TypedArrayLikeAccessor, UntypedArrayLikeAccessor,
+ ndarray::RustNDIndex, ArrayLikeIndexer, ArrayLikeValue, ListValue, ProxyValue, RangeValue,
+ UntypedArrayLikeAccessor,
},
CodeGenContext, CodeGenTask, CodeGenerator,
};
use crate::{
symbol_resolver::{SymbolValue, ValueEnum},
- toplevel::{
- helper::{extract_ndims, PrimDef},
- numpy::unpack_ndarray_var_tys,
- DefinitionId, TopLevelDef,
- },
+ toplevel::{helper::PrimDef, numpy::unpack_ndarray_var_tys, DefinitionId, TopLevelDef},
typecheck::{
magic_methods::{Binop, BinopVariant, HasOpInfo},
typedef::{FunSignature, FuncArg, Type, TypeEnum, TypeVarId, Unifier, VarMap},
@@ -2512,319 +2507,6 @@ pub fn gen_cmpop_expr<'ctx, G: CodeGenerator>(
)
}
-/// Generates code for a subscript expression on an `ndarray`.
-///
-/// * `ty` - The `Type` of the `NDArray` elements.
-/// * `ndims` - The `Type` of the `NDArray` number-of-dimensions `Literal`.
-/// * `v` - The `NDArray` value.
-/// * `slice` - The slice expression used to subscript into the `ndarray`.
-fn gen_ndarray_subscript_expr<'ctx, G: CodeGenerator>(
- generator: &mut G,
- ctx: &mut CodeGenContext<'ctx, '_>,
- ty: Type,
- ndims_ty: Type,
- v: NDArrayValue<'ctx>,
- slice: &Expr