Skip to content

Commit

Permalink
Fix unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman committed Jan 8, 2025
1 parent 18e2166 commit f57bc1a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion ext-src/swoole_lock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ void php_swoole_lock_set_ptr(zval *zobject, Lock *ptr) {
}

static void php_swoole_lock_free_object(zend_object *object) {
LockObject *o = php_swoole_lock_fetch_object(object);
zend_object_std_dtor(object);
}

Expand Down
1 change: 0 additions & 1 deletion ext-src/swoole_runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,6 @@ static php_stream *socket_create(const char *proto,
}

if (SW_STREQ(proto, protolen, "tcp")) {
_tcp:
sock = new Socket(resourcename[0] == '[' ? SW_SOCK_TCP6 : SW_SOCK_TCP);
} else if (SW_STREQ(proto, protolen, "ssl") || SW_STREQ(proto, protolen, "tls")) {
#ifdef SW_USE_OPENSSL
Expand Down

0 comments on commit f57bc1a

Please sign in to comment.