Skip to content

Commit 91f1a17

Browse files
mcabbottdevmotion
andauthored
Update src/prelude.jl
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
1 parent 41c97e6 commit 91f1a17

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/prelude.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,3 @@ end
7373

7474
# This allows us to call `Base.require_one_based_indexing` in `gradient!` etc:
7575
Base.has_offset_axes(::DiffResults.DiffResult) = false
76-
# And this is only needed for VERSION < v"1.2"
77-
require_one_based_indexing(A...) = !Base.has_offset_axes(A...) || throw(ArgumentError(
78-
"offset arrays are not supported but got an array with index other than 1"))

0 commit comments

Comments
 (0)