I have a project in Git. In my code, at some point in the past, I removed a call to a public function. I would like to know when I removed the call to this function, and why. Because the function call is in a different file than the function definition, I can't simply look at the file history of the file that defines the function. Is there an easy way to look for files that contain calls to a function?
I'll try to illustrate this:
File: MyFuncCall.cs //older version
public void Foo()
{
//do something ...
}
File: ???.cs //older version
public void Bar()
{
new MyFuncCall().Foo();
//do something else...
}
After some commits, the code now looks like:
File: MyFuncCall.cs //newer version
public void Foo()
{
//do something ...
}
File: ???.cs //newer version
public void Bar()
{
//no more call to function
//do something else...
}
In this illustration, I want to know what ???.cs is.