Added -Ywarn-unused and removed unused method `gitProc`