Is there an automated tool for removing occurrences of a variable?

Viewed 73

I am looking for an automated tool which can alter the code based on certain conditions. Do we have any tool for removing all occurrences of a given variable in a git repo?

Before

if(isAccepted) { 
   print("hello");
} else {
   print("world");
}

After

print("world");
0 Answers
Related