Remove unused variable in GetDirectory()
Merge pull request #2656 from Rawk/patch-1

Remove unused variable in GetDirectory()