wp8: removing unused code