Remove unused static code