Changeset - 2f9c47c50e68
[Not reviewed]
MH - 3 years ago 2022-05-17 13:26:53
contact@maxhenger.nl
Remove some debugging printing
1 file changed with 0 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/runtime2/stdlib/internet.rs
Show inline comments
 
@@ -45,7 +45,6 @@ impl SocketTcpClient {
 
            return Err(SocketError::Modifying);
 
        }
 

	
 
        println!(" CREATE  [{:04}] client", socket_handle);
 
        return Ok(SocketTcpClient{
 
            socket_handle,
 
            is_blocking: SOCKET_BLOCKING,
 
@@ -93,7 +92,6 @@ impl SocketTcpClient {
 

	
 
impl Drop for SocketTcpClient {
 
    fn drop(&mut self) {
 
        println!("DESTRUCT [{:04}] client", self.socket_handle);
 
        debug_assert!(self.socket_handle >= 0);
 
        unsafe{ close(self.socket_handle) };
 
    }
 
@@ -132,7 +130,6 @@ impl SocketTcpListener {
 
        }
 

	
 

	
 
        println!(" CREATE  [{:04}] listener", socket_handle);
 
        return Ok(SocketTcpListener{
 
            socket_handle,
 
            is_blocking: SOCKET_BLOCKING,
 
@@ -147,14 +144,12 @@ impl SocketTcpListener {
 
            return Err(IoError::last_os_error());
 
        }
 

	
 
        println!(" CREATE  [{:04}] client (from listener)", socket_handle);
 
        return Ok(socket_handle);
 
    }
 
}
 

	
 
impl Drop for SocketTcpListener {
 
    fn drop(&mut self) {
 
        println!("DESTRUCT [{:04}] listener", self.socket_handle);
 
        debug_assert!(self.socket_handle >= 0);
 
        unsafe{ close(self.socket_handle) };
 
    }
0 comments (0 inline, 0 general)