Remove unnecessary pointer checks
This commit is contained in:
parent
32c3f367e4
commit
4af581ba07
1 changed files with 0 additions and 4 deletions
|
@ -191,7 +191,6 @@ impl BufferManager {
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.take(output_channel_pointers.num_channels)
|
.take(output_channel_pointers.num_channels)
|
||||||
{
|
{
|
||||||
assert!(!output_channel_pointers.ptrs.as_ptr().is_null());
|
|
||||||
let output_channel_pointer =
|
let output_channel_pointer =
|
||||||
output_channel_pointers.ptrs.as_ptr().add(channel_idx);
|
output_channel_pointers.ptrs.as_ptr().add(channel_idx);
|
||||||
|
|
||||||
|
@ -229,7 +228,6 @@ impl BufferManager {
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.take(input_channel_pointers.num_channels)
|
.take(input_channel_pointers.num_channels)
|
||||||
{
|
{
|
||||||
assert!(!input_channel_pointers.ptrs.as_ptr().is_null());
|
|
||||||
let input_channel_pointer =
|
let input_channel_pointer =
|
||||||
input_channel_pointers.ptrs.as_ptr().add(channel_idx);
|
input_channel_pointers.ptrs.as_ptr().add(channel_idx);
|
||||||
|
|
||||||
|
@ -273,7 +271,6 @@ impl BufferManager {
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.take(input_channel_pointers.num_channels)
|
.take(input_channel_pointers.num_channels)
|
||||||
{
|
{
|
||||||
assert!(!input_channel_pointers.ptrs.as_ptr().is_null());
|
|
||||||
let input_channel_pointer =
|
let input_channel_pointer =
|
||||||
input_channel_pointers.ptrs.as_ptr().add(channel_idx);
|
input_channel_pointers.ptrs.as_ptr().add(channel_idx);
|
||||||
|
|
||||||
|
@ -334,7 +331,6 @@ impl BufferManager {
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.take(output_channel_pointers.num_channels)
|
.take(output_channel_pointers.num_channels)
|
||||||
{
|
{
|
||||||
assert!(!output_channel_pointers.ptrs.as_ptr().is_null());
|
|
||||||
let output_channel_pointer =
|
let output_channel_pointer =
|
||||||
output_channel_pointers.ptrs.as_ptr().add(channel_idx);
|
output_channel_pointers.ptrs.as_ptr().add(channel_idx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue