Trimmed unneeded code before translation