Replaced RefObjectId by GitObject
Removed unused methods