Remove unused declarations from MainActivity.