@@ -77,32 +77,11 @@ class Endpoint
77
77
*/
78
78
static constexpr std::optional<Endpoint> from_string (std::string_view endpoint);
79
79
80
- /* *
81
- * Set the endpoint's IP address.
82
- *
83
- * @param address The endoint's new IP address.
84
- */
85
- void set_address (const IPAddressType &address);
86
-
87
- /* *
88
- * Set the endpoint's IP address.
89
- *
90
- * @param address The endoint's new IP address.
91
- */
92
- void set_address (IPAddressType &&address);
93
-
94
80
/* *
95
81
* @return The endoint's IP address.
96
82
*/
97
83
constexpr const IPAddressType &address () const ;
98
84
99
- /* *
100
- * Set the endpoint's port.
101
- *
102
- * @param port The endoint's new port.
103
- */
104
- void set_port (port_type port);
105
-
106
85
/* *
107
86
* @return The endoint's IP port.
108
87
*/
@@ -211,20 +190,6 @@ Endpoint<IPAddressType>::from_string(std::string_view endpoint)
211
190
return Endpoint (*std::move (address), static_cast <port_type>(*port));
212
191
}
213
192
214
- // ==================================================================================================
215
- template <typename IPAddressType>
216
- void Endpoint<IPAddressType>::set_address(const IPAddressType &address)
217
- {
218
- m_address = address;
219
- }
220
-
221
- // ==================================================================================================
222
- template <typename IPAddressType>
223
- void Endpoint<IPAddressType>::set_address(IPAddressType &&address)
224
- {
225
- m_address = std::move (address);
226
- }
227
-
228
193
// ==================================================================================================
229
194
template <typename IPAddressType>
230
195
constexpr const IPAddressType &Endpoint<IPAddressType>::address() const
@@ -239,13 +204,6 @@ constexpr port_type Endpoint<IPAddressType>::port() const
239
204
return m_port;
240
205
}
241
206
242
- // ==================================================================================================
243
- template <typename IPAddressType>
244
- void Endpoint<IPAddressType>::set_port(port_type port)
245
- {
246
- m_port = port;
247
- }
248
-
249
207
#if !defined(FLY_LINUX)
250
208
251
209
// ==================================================================================================
0 commit comments