Remove unused functions _write_packed_refs and get_sha1_from_refspec.

These two functions aren't used anywhere in gittyup. If you'll need this functionality in the future, there are functions that do this in Dulwich nowadays.