From b07a159856a809587efcaa2a022d38d6c8668a90 Mon Sep 17 00:00:00 2001 From: jfreegman Date: Sun, 19 Dec 2021 15:14:24 -0500 Subject: [PATCH] Remove redundant (and incorrect) comments --- toxcore/crypto_core_mem.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/toxcore/crypto_core_mem.c b/toxcore/crypto_core_mem.c index 2ff25d55..7b002b72 100644 --- a/toxcore/crypto_core_mem.c +++ b/toxcore/crypto_core_mem.c @@ -21,12 +21,6 @@ void crypto_memzero(void *data, size_t length) #endif } -/** - * Locks `length` bytes of memory pointed to by `data`. This will attempt to prevent - * the specified memory region from being swapped to disk. - * - * Returns true on success. - */ bool crypto_memlock(void *data, size_t length) { #ifndef VANILLA_NACL @@ -41,17 +35,6 @@ bool crypto_memlock(void *data, size_t length) #endif } -/** - * Unlocks `length` bytes of memory pointed to by `data`. This allows the specified - * memory region to be swapped to disk. - * - * This function call has the side effect of zeroing the specified memory region - * whether or not it succeeds. Therefore it should only be used once the memory - * is no longer in use. - * - * Return 0 on success. - * Return -1 on failure. - */ bool crypto_memunlock(void *data, size_t length) { #ifndef VANILLA_NACL