Remove unused piece of code