Removing unused code (imperative programming)