summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-04-03 01:02:04 +0200
committerLiam <byteslice@airmail.cc>2023-04-03 01:02:04 +0200
commita9623d5f550c8fc63f436a40f43bfbf539ac0853 (patch)
treeb6513dfee3b8410ab61d5e9ea799e757f049a1de /src/core
parentMerge pull request #10005 from liamwhite/kernel-atomics (diff)
downloadyuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.tar
yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.tar.gz
yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.tar.bz2
yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.tar.lz
yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.tar.xz
yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.tar.zst
yuzu-a9623d5f550c8fc63f436a40f43bfbf539ac0853.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/internal_network/socket_proxy.h3
-rw-r--r--src/core/internal_network/sockets.h13
2 files changed, 2 insertions, 14 deletions
diff --git a/src/core/internal_network/socket_proxy.h b/src/core/internal_network/socket_proxy.h
index 9421492bc..6e991fa38 100644
--- a/src/core/internal_network/socket_proxy.h
+++ b/src/core/internal_network/socket_proxy.h
@@ -16,9 +16,6 @@ namespace Network {
class ProxySocket : public SocketBase {
public:
- YUZU_NON_COPYABLE(ProxySocket);
- YUZU_NON_MOVEABLE(ProxySocket);
-
explicit ProxySocket(RoomNetwork& room_network_) noexcept;
~ProxySocket() override;
diff --git a/src/core/internal_network/sockets.h b/src/core/internal_network/sockets.h
index 4c7489258..11e479e50 100644
--- a/src/core/internal_network/sockets.h
+++ b/src/core/internal_network/sockets.h
@@ -36,13 +36,10 @@ public:
SocketBase() = default;
explicit SocketBase(SOCKET fd_) : fd{fd_} {}
-
virtual ~SocketBase() = default;
- virtual SocketBase& operator=(const SocketBase&) = delete;
-
- // Avoid closing sockets implicitly
- virtual SocketBase& operator=(SocketBase&&) noexcept = delete;
+ YUZU_NON_COPYABLE(SocketBase);
+ YUZU_NON_MOVEABLE(SocketBase);
virtual Errno Initialize(Domain domain, Type type, Protocol protocol) = 0;
@@ -109,14 +106,8 @@ public:
~Socket() override;
- Socket(const Socket&) = delete;
- Socket& operator=(const Socket&) = delete;
-
Socket(Socket&& rhs) noexcept;
- // Avoid closing sockets implicitly
- Socket& operator=(Socket&&) noexcept = delete;
-
Errno Initialize(Domain domain, Type type, Protocol protocol) override;
Errno Close() override;