summaryrefslogtreecommitdiff
path: root/core/src/xmake/hash
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-09 19:54:35 +0800
committerruki <[email protected]>2025-11-09 19:54:35 +0800
commit39189e3a1bd2979b7b454547b03e5926a8027431 (patch)
tree79548f9fafae56213fa8feb14b35d79f29f01c16 /core/src/xmake/hash
parent91f6ed08fe32e36d555129efa4afdd82113f0eb4 (diff)
remove unused comments
Diffstat (limited to 'core/src/xmake/hash')
-rw-r--r--core/src/xmake/hash/md5.c2
-rw-r--r--core/src/xmake/hash/rand128.c1
-rw-r--r--core/src/xmake/hash/rand32.c1
-rw-r--r--core/src/xmake/hash/rand64.c1
-rw-r--r--core/src/xmake/hash/sha.c2
-rw-r--r--core/src/xmake/hash/uuid4.c1
-rw-r--r--core/src/xmake/hash/xxhash.c2
7 files changed, 0 insertions, 10 deletions
diff --git a/core/src/xmake/hash/md5.c b/core/src/xmake/hash/md5.c
index 91f7eafc9..3c871b063 100644
--- a/core/src/xmake/hash/md5.c
+++ b/core/src/xmake/hash/md5.c
@@ -34,7 +34,6 @@
* implementation
*/
tb_int_t xm_hash_md5(lua_State *lua) {
- // check
tb_assert_and_check_return_val(lua, 0);
// is bytes? get data and size
@@ -81,7 +80,6 @@ tb_int_t xm_hash_md5(lua_State *lua) {
// read data
tb_long_t real = tb_stream_read(stream, data, sizeof(data));
- // ok?
if (real > 0)
tb_md5_spak(&md5, data, real);
// no data? continue it
diff --git a/core/src/xmake/hash/rand128.c b/core/src/xmake/hash/rand128.c
index bb844aee9..625e75326 100644
--- a/core/src/xmake/hash/rand128.c
+++ b/core/src/xmake/hash/rand128.c
@@ -34,7 +34,6 @@
* implementation
*/
tb_int_t xm_hash_rand128(lua_State *lua) {
- // check
tb_assert_and_check_return_val(lua, 0);
static union {
diff --git a/core/src/xmake/hash/rand32.c b/core/src/xmake/hash/rand32.c
index a8a2dc054..844dd83e7 100644
--- a/core/src/xmake/hash/rand32.c
+++ b/core/src/xmake/hash/rand32.c
@@ -34,7 +34,6 @@
* implementation
*/
tb_int_t xm_hash_rand32(lua_State *lua) {
- // check
tb_assert_and_check_return_val(lua, 0);
static tb_uint64_t s_seed = 0;
diff --git a/core/src/xmake/hash/rand64.c b/core/src/xmake/hash/rand64.c
index 05b861327..0f9e39069 100644
--- a/core/src/xmake/hash/rand64.c
+++ b/core/src/xmake/hash/rand64.c
@@ -34,7 +34,6 @@
* implementation
*/
tb_int_t xm_hash_rand64(lua_State *lua) {
- // check
tb_assert_and_check_return_val(lua, 0);
static union {
diff --git a/core/src/xmake/hash/sha.c b/core/src/xmake/hash/sha.c
index 12d98b860..158a09208 100644
--- a/core/src/xmake/hash/sha.c
+++ b/core/src/xmake/hash/sha.c
@@ -34,7 +34,6 @@
* implementation
*/
tb_int_t xm_hash_sha(lua_State *lua) {
- // check
tb_assert_and_check_return_val(lua, 0);
// get mode
@@ -88,7 +87,6 @@ tb_int_t xm_hash_sha(lua_State *lua) {
// read data
tb_long_t real = tb_stream_read(stream, data, sizeof(data));
- // ok?
if (real > 0)
tb_sha_spak(&sha, data, real);
// no data? continue it
diff --git a/core/src/xmake/hash/uuid4.c b/core/src/xmake/hash/uuid4.c
index d99e849d8..8712e9efa 100644
--- a/core/src/xmake/hash/uuid4.c
+++ b/core/src/xmake/hash/uuid4.c
@@ -34,7 +34,6 @@
* implementation
*/
tb_int_t xm_hash_uuid4(lua_State *lua) {
- // check
tb_assert_and_check_return_val(lua, 0);
// get the name
diff --git a/core/src/xmake/hash/xxhash.c b/core/src/xmake/hash/xxhash.c
index 49e1199e8..7a55ce63d 100644
--- a/core/src/xmake/hash/xxhash.c
+++ b/core/src/xmake/hash/xxhash.c
@@ -38,7 +38,6 @@
* implementation
*/
tb_int_t xm_hash_xxhash(lua_State *lua) {
- // check
tb_assert_and_check_return_val(lua, 0);
// get mode
@@ -115,7 +114,6 @@ tb_int_t xm_hash_xxhash(lua_State *lua) {
// read data
tb_long_t real = tb_stream_read(stream, data, sizeof(data));
- // ok?
if (real > 0) {
if (mode == 32 || mode == 64)
XM_XXH3_64bits_update(state, data, real);