summaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-binding/utils/socketcan.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-31 12:31:11 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-06-01 18:22:49 +0200
commit016b3b0d2764bccf881558d712decc6e9fe1fadd (patch)
tree9d144aa6e77bfc2d015acde3e84bc2bd777549bb /CAN-binder/low-can-binding/utils/socketcan.cpp
parenteafde4cec4fc026444501ed3a096a12e6eb8fc90 (diff)
Remake socketcan only movable
Change-Id: If81e2a18c0beec392a98f8b835c7a5d154360500 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/utils/socketcan.cpp')
-rw-r--r--CAN-binder/low-can-binding/utils/socketcan.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/CAN-binder/low-can-binding/utils/socketcan.cpp b/CAN-binder/low-can-binding/utils/socketcan.cpp
index ffd46151..1f7aaa61 100644
--- a/CAN-binder/low-can-binding/utils/socketcan.cpp
+++ b/CAN-binder/low-can-binding/utils/socketcan.cpp
@@ -31,17 +31,10 @@ namespace utils
: socket_{INVALID_SOCKET}
{}
- /// @brief Construct a socket by copying an existing one.
- socketcan_t::socketcan_t(const socketcan_t& s)
- : socket_{s.socket_}
- {}
-
/// @brief Construct a socket by moving an existing one.
socketcan_t::socketcan_t(socketcan_t&& s)
: socket_{s.socket_}
- {
- s.socket_ = INVALID_SOCKET;
- }
+ {}
socketcan_t& socketcan_t::operator=(const socketcan_t& s)
{