Removed unused methods in Pin.java