Removed unused setShowOrientation function