diff --git a/include/freerdp/transport_io.h b/include/freerdp/transport_io.h index 5500a2cee..fe683c616 100644 --- a/include/freerdp/transport_io.h +++ b/include/freerdp/transport_io.h @@ -65,7 +65,6 @@ extern "C" * <0 -> Abort, an error occured */ FREERDP_API SSIZE_T transport_parse_pdu(rdpTransport* transport, wStream* s, BOOL* incomplete); - FREERDP_API rdpContext* transport_get_context(rdpTransport* transport); FREERDP_API rdpTransport* freerdp_get_transport(rdpContext* context); diff --git a/libfreerdp/core/transport.c b/libfreerdp/core/transport.c index ffca3772d..c0ab0db5f 100644 --- a/libfreerdp/core/transport.c +++ b/libfreerdp/core/transport.c @@ -137,7 +137,6 @@ static void transport_ssl_cb(SSL* ssl, int where, int ret) wStream* transport_send_stream_init(rdpTransport* transport, size_t size) { wStream* s; - WINPR_ASSERT(transport); if (!(s = StreamPool_Take(transport->ReceivePool, size))) @@ -1258,7 +1257,6 @@ rdpTransport* transport_new(rdpContext* context) rdpTransport* transport = (rdpTransport*)calloc(1, sizeof(rdpTransport)); WINPR_ASSERT(context); - if (!transport) return NULL;