Clean up C# unused code