I have a large body of C code (dozens of files that are several thousand lines each) that I'm trying to port from another platform to MSVC++. There are many redundant types in a file because of sloppiness of previous programmers.
Obviously I can eliminate the types one by one and see if they build. Is there a quick way in Visual Studio that I can identify or refactor out unused types?
typedef struct {
int Field1;
int Field2;
} notused1;
struct notused2 {
int Field1;
int Field2;
};
int ActualWork() {
// Doesn't use either struct
}
I don't believe this question is a duplicate of 2380153 because that question was asked in 2010.