From 8546fc68782d8a82a5c50a49ba1288dcb7714bf9 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 5 May 2017 18:39:13 +0200 Subject: Don't destroy socket by default as they will always be open. Now derivated class use constructor from base class and we don't destroy socket when a socket object is over since it may be copied before. So closing them is in charge of dev, well me... Change-Id: I0440119017a3e56bb83d0194a6908dc3e2b8f745 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/utils/socketcan-raw.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'CAN-binder/low-can-binding/utils/socketcan-raw.cpp') diff --git a/CAN-binder/low-can-binding/utils/socketcan-raw.cpp b/CAN-binder/low-can-binding/utils/socketcan-raw.cpp index 23f83322..589f6abc 100644 --- a/CAN-binder/low-can-binding/utils/socketcan-raw.cpp +++ b/CAN-binder/low-can-binding/utils/socketcan-raw.cpp @@ -22,15 +22,6 @@ namespace utils { - /// @brief Construct a default, invalid, socket. - socketcan_raw_t::socketcan_raw_t() - : socketcan_t{} - {} - - /// @brief Destruct the socket. - socketcan_raw_t::~socketcan_raw_t() - {} - /// @brief Bind the socket. /// @return 0 if success. int socketcan_raw_t::bind(const struct sockaddr* addr, socklen_t len) -- cgit 1.2.3-korg