diff --git a/libgimpmath/Makefile.am b/libgimpmath/Makefile.am index be67ba8eee..0c34e2d5cd 100644 --- a/libgimpmath/Makefile.am +++ b/libgimpmath/Makefile.am @@ -63,8 +63,6 @@ libgimpmath_@GIMP_API_VERSION@_la_SOURCES = \ gimpmathtypes.h \ gimpmatrix.c \ gimpmatrix.h \ - gimpmd5.c \ - gimpmd5.h \ gimpvector.c \ gimpvector.h @@ -72,7 +70,6 @@ libgimpmathinclude_HEADERS = \ gimpmath.h \ gimpmathtypes.h \ gimpmatrix.h \ - gimpmd5.h \ gimpvector.h libgimpmath_@GIMP_API_VERSION@_la_LDFLAGS = \ diff --git a/libgimpmath/gimpmath.h b/libgimpmath/gimpmath.h index c26acc3710..d2c591566f 100644 --- a/libgimpmath/gimpmath.h +++ b/libgimpmath/gimpmath.h @@ -37,7 +37,6 @@ #include #include -#include #include #undef __GIMP_MATH_H_INSIDE__ diff --git a/libgimpmath/gimpmd5.c b/libgimpmath/gimpmd5.c deleted file mode 100644 index 712c3a9885..0000000000 --- a/libgimpmath/gimpmd5.c +++ /dev/null @@ -1,53 +0,0 @@ -/* LIBGIMP - The GIMP Library - * - * gimpmd5.c - * - * Use of this code is deprecated! Use %GChecksum from GLib instead. - */ - -#include "config.h" - -#include - -#include "gimpmathtypes.h" - -#include "gimpmd5.h" - - -/** - * SECTION: gimpmd5 - * @title: GimpMD5 - * @short_description: The MD5 message-digest algorithm - * - * The MD5 message-digest algorithm - **/ - - -/** - * gimp_md5_get_digest: - * @buffer: byte buffer - * @buffer_size: buffer size (in bytes) or -1 if @buffer is nul-terminated. - * @digest: 16 bytes buffer receiving the hash code. - * - * This function is deprecated! Use %GChecksum from GLib instead. - * - * Get the md5 hash of a buffer. The result is put in the 16 bytes - * buffer @digest. For more information see RFC 1321. - **/ -void -gimp_md5_get_digest (const gchar *buffer, - gint buffer_size, - guchar digest[16]) -{ - GChecksum *checksum; - gsize len = 16; - - g_return_if_fail (buffer != NULL); - g_return_if_fail (digest != NULL); - - checksum = g_checksum_new (G_CHECKSUM_MD5); - - g_checksum_update (checksum, (const guchar *) buffer, buffer_size); - g_checksum_get_digest (checksum, digest, &len); - g_checksum_free (checksum); -} diff --git a/libgimpmath/gimpmd5.h b/libgimpmath/gimpmd5.h deleted file mode 100644 index 1e04e91df0..0000000000 --- a/libgimpmath/gimpmd5.h +++ /dev/null @@ -1,26 +0,0 @@ -/* LIBGIMP - The GIMP Library - * - * gimpmd5.h - * - * Use of this code is deprecated! Use %GChecksum from GLib instead. - */ - -#if !defined (__GIMP_MATH_H_INSIDE__) && !defined (GIMP_MATH_COMPILATION) -#error "Only can be included directly." -#endif - -#ifndef __GIMP_MD5_H__ -#define __GIMP_MD5_H__ - -G_BEGIN_DECLS - -/* For information look into the C source or the html documentation */ - -GIMP_DEPRECATED_FOR(GChecksum) -void gimp_md5_get_digest (const gchar *buffer, - gint buffer_size, - guchar digest[16]); - -G_END_DECLS - -#endif /* __GIMP_MD5_H__ */