summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-06-29 19:58:30 +0100
committerCharles Pigott <charlespigott@googlemail.com>2019-09-30 14:00:06 +0100
commit71a3e83468e36613ffe53b4e1689d52062da7c80 (patch)
tree49635f491cfd19a94d9a7b9b3cbbe45342f1c23b /src/network/core
parentacf0242961bf68312a5d9887e58832304e1f45c5 (diff)
downloadopenttd-71a3e83468e36613ffe53b4e1689d52062da7c80.tar.xz
Fix: GCC9's warnings about deprecated implicit assignment operators
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/address.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/network/core/address.h b/src/network/core/address.h
index 4dd0edbc0..2f27a083a 100644
--- a/src/network/core/address.h
+++ b/src/network/core/address.h
@@ -91,15 +91,6 @@ public:
this->SetPort(port);
}
- /**
- * Make a clone of another address
- * @param address the address to clone
- */
- NetworkAddress(const NetworkAddress &address)
- {
- memcpy(this, &address, sizeof(*this));
- }
-
const char *GetHostname();
void GetAddressAsString(char *buffer, const char *last, bool with_family = true);
const char *GetAddressAsString(bool with_family = true);