Is there a way to perform the opposite of the "Extract Method" refactor in Visual Studio?
I have a legacy codebase that has ~50 very short, private functions that are only used once each, and I have been tasked with inlining them.
If an automatic inline refactoring isn't possible, is it possible to reduce the amount of time it takes to inline these function calls? My current workflow is:
- Copy the code in the function.
- Find where it is called.
- Replace the function call with the copied code.
- Replace local variable names from the function.
- Delete the function.