Revert "Convert libstd to use the Drop trait"

This reverts commit 28c7a25151.
This commit is contained in:
Brian Anderson
2012-11-14 14:51:16 -08:00
parent 11024eaebb
commit c44c9a47d8
8 changed files with 52 additions and 107 deletions

View File

@@ -27,14 +27,11 @@ extern mod rustrt {
*/
struct TcpSocket {
socket_data: @TcpSocketData,
}
impl TcpSocket : Drop {
fn finalize() {
drop {
unsafe {
tear_down_socket_data(self.socket_data)
}
}
}
}
pub fn TcpSocket(socket_data: @TcpSocketData) -> TcpSocket {