Can I delete a function argument and its corresponding code from a file

I have a following sample function in a file which contains only function definitions like this.

void mul(int x, int y, int& out, int* arr) {

arr[0] = 2;

arr[1] = 1;

out = x * y;

I want to convert it to

void mul(int x, int y, int& out) {

out = x * y;

file contains only above function definitions.

Hi Jeevan,

the function is externally visible, you cannot modify the signature.
If it has internal or private linkage you can, assuming you adjust all
the uses (call sites and other uses).


Thank you for the clarification.