lib/repo: Update summary code to use newer hashing API

And drop the unnecessary wrapper.

Closes: #1287
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2017-10-18 13:27:11 +00:00
1 parent de5f781089
commit 40a0b9fb73
3 files changed
+8 -26

No files matched your search

-11
View File
@@ -252,17 +252,6 @@ ot_gio_splice_get_checksum (GOutputStream *out,
return TRUE;
}
gboolean
ot_gio_checksum_stream (GInputStream *in,
guchar **out_csum,
GCancellable *cancellable,
GError **error)
{
if (!out_csum)
return TRUE;
return ot_gio_splice_get_checksum (NULL, in, out_csum, cancellable, error);
}
char *
ot_checksum_file_at (int dfd,
const char *path,
-5
View File
@@ -88,11 +88,6 @@ gboolean ot_gio_splice_update_checksum (GOutputStream *out,
GCancellable *cancellable,
GError **error);
gboolean ot_gio_checksum_stream (GInputStream *in,
guchar **out_csum,
GCancellable *cancellable,
GError **error);
char * ot_checksum_file_at (int dfd,
const char *path,
GChecksumType checksum_type,