summaryrefslogtreecommitdiff
path: root/core/src/xmake/string/startswith.c
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/string/startswith.c
parent91f6ed08fe32e36d555129efa4afdd82113f0eb4 (diff)
remove unused comments
Diffstat (limited to 'core/src/xmake/string/startswith.c')
-rw-r--r--core/src/xmake/string/startswith.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/src/xmake/string/startswith.c b/core/src/xmake/string/startswith.c
index c7fe9dcca..04b53ffa7 100644
--- a/core/src/xmake/string/startswith.c
+++ b/core/src/xmake/string/startswith.c
@@ -34,7 +34,6 @@
* implementation
*/
tb_int_t xm_string_startswith(lua_State *lua) {
- // check
tb_assert_and_check_return_val(lua, 0);
// get the string and prefix
@@ -46,6 +45,5 @@ tb_int_t xm_string_startswith(lua_State *lua) {
// string:startswith(prefix)?
lua_pushboolean(lua, !tb_strncmp(string, prefix, (tb_size_t)prefix_size));
- // ok
return 1;
}