Remove not used import
No need to parse git tree here

We only need language code and filename from this function, the hash
was never used.
Clarify condition