From 05534bee7dd30d9e81b86f3b0cc4b73f68d48d8e Mon Sep 17 00:00:00 2001 From: Eric Davies Date: Mon, 18 Jan 2016 10:14:22 -0600 Subject: [PATCH] Remove unnecessary eval. --- src/virtual_cat.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtual_cat.jl b/src/virtual_cat.jl index a5febc5..d5473f8 100644 --- a/src/virtual_cat.jl +++ b/src/virtual_cat.jl @@ -3,7 +3,7 @@ function virtual_cat{T}(expanded_dim::Int, parents::AbstractArray{T}...) dim = max(expanded_dim, largest_dim(parents...)) - return eval(:(VirtualArray{$T, $dim}($expanded_dim, $(parents...)))) + return VirtualArray{T, dim}(expanded_dim, parents...) end function virtual_cat(expanded_dim::Int) @@ -24,4 +24,4 @@ function largest_dim(parents::AbstractArray...) largest = max(largest, length(size(parent))) end return largest -end \ No newline at end of file +end