Skip to content

Commit 1c14117

Browse files
committed
remove ols unused code
1 parent b432431 commit 1c14117

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

source/mir/ndslice/slice.d

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -642,25 +642,6 @@ struct Slice(SliceKind kind, size_t[] packs, Iterator)
642642
}
643643
}
644644

645-
//size_t mathIndexStride(size_t I)(size_t[I] _indexes...) const
646-
//{
647-
// static if (_indexes.length)
648-
// {
649-
// size_t stride = _strides[0] * _indexes[N - 1];
650-
// assert(_indexes[N - 1] < _lengths[0], indexError!(N - 1, N));
651-
// foreach_reverse (i; Iota!(0, I - 1)) //static
652-
// {
653-
// assert(_indexes[i] < _lengths[N - 1 - i], indexError!(i, N));
654-
// stride += _strides[N - 1 - i] * _indexes[i];
655-
// }
656-
// return stride;
657-
// }
658-
// else
659-
// {
660-
// return 0;
661-
// }
662-
//}
663-
664645
public:
665646

666647
/// Creates a 2-dimentional slice with custom strides.

0 commit comments

Comments
 (0)