Remove unused method taking an array (we have the same method taking a std::vector). Fixes cppcheck defect (see !75950 (merged)).
cc @stelzer