Removing Redundant Functions
-
I am working on a large codebase on VC++ 6.0, which contains many unused functions. i.e. functions that are never called from anywhere else in the code. I would like to delete these functions. Without having to run every possible scenario with some sort of code coverage tool, is there any possible way to find these functions? Currently all I can do is do a Find In Files on the function name and work it out. Thanks for your help...
Cheers d3m0n
-
I am working on a large codebase on VC++ 6.0, which contains many unused functions. i.e. functions that are never called from anywhere else in the code. I would like to delete these functions. Without having to run every possible scenario with some sort of code coverage tool, is there any possible way to find these functions? Currently all I can do is do a Find In Files on the function name and work it out. Thanks for your help...
Cheers d3m0n
-
do you want to do that for your personal order? I mean the compiler sees which functions you use...
Yes... it's sometimes confusing if you're changing a file, and there's a function in there with an obvious bug. There's no point trying to fix the bug if that function is totally redundant. Better to just remove it. So I was wondering if there was a way to find every redundant function, so I don't waste my time looking at them. Thanks.
Cheers d3m0n
-
Yes... it's sometimes confusing if you're changing a file, and there's a function in there with an obvious bug. There's no point trying to fix the bug if that function is totally redundant. Better to just remove it. So I was wondering if there was a way to find every redundant function, so I don't waste my time looking at them. Thanks.
Cheers d3m0n
[d3m0n] wrote:
So I was wondering if there was a way to find every redundant function...
Doesn't the profiler tell you this?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
[d3m0n] wrote:
So I was wondering if there was a way to find every redundant function...
Doesn't the profiler tell you this?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I could never get the profiler to work. Enabled the option in the project settings but the [Build->Profile] menu is always disabled. Might try again though if you think it would be useful for what I'm trying to do. Thanks.
Cheers d3m0n
[d3m0n] wrote:
Enabled the option in the project settings...
On the Link tab, you checked the Enable profiling checkbox?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
[d3m0n] wrote:
Enabled the option in the project settings...
On the Link tab, you checked the Enable profiling checkbox?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
[d3m0n] wrote:
Enabled the option in the project settings...
On the Link tab, you checked the Enable profiling checkbox?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne