Skip to content

Commit 1093479

Browse files
committed
Remove code deprecated in ns-3.41
1 parent 95d219a commit 1093479

File tree

9 files changed

+1
-89
lines changed

9 files changed

+1
-89
lines changed

doc/doxygen.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,8 +2303,7 @@ EXPAND_AS_DEFINED = ATTRIBUTE_ACCESSOR_DEFINE \
23032303
NS_DEPRECATED_3_45 \
23042304
NS_DEPRECATED_3_44 \
23052305
NS_DEPRECATED_3_43 \
2306-
NS_DEPRECATED_3_42 \
2307-
NS_DEPRECATED_3_41
2306+
NS_DEPRECATED_3_42
23082307

23092308
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
23102309
# remove all references to function-like macros that are alone on a line, have

src/click/model/ipv4-l3-click-protocol.cc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -273,18 +273,6 @@ Ipv4L3ClickProtocol::GetIpForward() const
273273
return m_ipForward;
274274
}
275275

276-
void
277-
Ipv4L3ClickProtocol::SetWeakEsModel(bool model)
278-
{
279-
m_strongEndSystemModel = !model;
280-
}
281-
282-
bool
283-
Ipv4L3ClickProtocol::GetWeakEsModel() const
284-
{
285-
return !m_strongEndSystemModel;
286-
}
287-
288276
void
289277
Ipv4L3ClickProtocol::SetStrongEndSystemModel(bool model)
290278
{

src/click/model/ipv4-l3-click-protocol.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,6 @@ class Ipv4L3ClickProtocol : public Ipv4
257257
void SetIpForward(bool forward) override;
258258
bool GetIpForward() const override;
259259

260-
/** @copydoc Ipv4::SetWeakEsModel */
261-
NS_DEPRECATED_3_41("Use SetStrongEndSystemModel instead")
262-
void SetWeakEsModel(bool model) override;
263-
/** @copydoc Ipv4::GetWeakEsModel */
264-
NS_DEPRECATED_3_41("Use GetStrongEndSystemModel instead")
265-
bool GetWeakEsModel() const override;
266-
267260
void SetStrongEndSystemModel(bool model) override;
268261
bool GetStrongEndSystemModel() const override;
269262

src/core/model/deprecated.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,4 @@
118118
*/
119119
#define NS_DEPRECATED_3_42(msg) NS_DEPRECATED("Deprecated in ns-3.42: " msg)
120120

121-
/**
122-
* @ingroup deprecation
123-
* @def NS_DEPRECATED_3_41
124-
* Tag for things deprecated in version ns-3.41.
125-
*/
126-
#define NS_DEPRECATED_3_41(msg) NS_DEPRECATED("Deprecated in ns-3.41: " msg)
127-
128121
#endif /* NS3_DEPRECATED_H */

src/internet/model/ipv4-l3-protocol.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,19 +1400,6 @@ Ipv4L3Protocol::GetIpForward() const
14001400
return m_ipForward;
14011401
}
14021402

1403-
void
1404-
Ipv4L3Protocol::SetWeakEsModel(bool model)
1405-
{
1406-
NS_LOG_FUNCTION(this << model);
1407-
m_strongEndSystemModel = !model;
1408-
}
1409-
1410-
bool
1411-
Ipv4L3Protocol::GetWeakEsModel() const
1412-
{
1413-
return !m_strongEndSystemModel;
1414-
}
1415-
14161403
void
14171404
Ipv4L3Protocol::SetStrongEndSystemModel(bool model)
14181405
{

src/internet/model/ipv4-l3-protocol.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,6 @@ class Ipv4L3Protocol : public Ipv4
289289
void SetIpForward(bool forward) override;
290290
bool GetIpForward() const override;
291291

292-
/** @copydoc Ipv4::SetWeakEsModel */
293-
NS_DEPRECATED_3_41("Use SetStrongEndSystemModel instead")
294-
void SetWeakEsModel(bool model) override;
295-
/** @copydoc Ipv4::GetWeakEsModel */
296-
NS_DEPRECATED_3_41("Use GetStrongEndSystemModel instead")
297-
bool GetWeakEsModel() const override;
298-
299292
void SetStrongEndSystemModel(bool model) override;
300293
bool GetStrongEndSystemModel() const override;
301294

src/internet/model/ipv4.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ Ipv4::GetTypeId()
3535
BooleanValue(true),
3636
MakeBooleanAccessor(&Ipv4::SetIpForward, &Ipv4::GetIpForward),
3737
MakeBooleanChecker())
38-
.AddAttribute("WeakEsModel",
39-
"RFC1122 term for whether host accepts datagram with a dest. address on "
40-
"another interface",
41-
BooleanValue(true),
42-
MakeBooleanAccessor(&Ipv4::SetWeakEsModel, &Ipv4::GetWeakEsModel),
43-
MakeBooleanChecker(),
44-
TypeId::SupportLevel::DEPRECATED,
45-
"DEPRECATED since ns-3.41. Use the StrongEndSystemModel attribute.")
4638
.AddAttribute(
4739
"StrongEndSystemModel",
4840
"Reject packets for an address not configured on the interface they're "

src/internet/model/ipv4.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -444,24 +444,6 @@ class Ipv4 : public Object
444444
*/
445445
virtual bool GetIpForward() const = 0;
446446

447-
/**
448-
* @brief Get the Weak Es Model status
449-
*
450-
* RFC1122 term for whether host accepts datagram with a dest. address on another interface
451-
* @returns true for Weak Es Model activated
452-
*/
453-
NS_DEPRECATED_3_41("Use GetStrongEndSystemModel instead")
454-
virtual bool GetWeakEsModel() const = 0;
455-
456-
/**
457-
* @brief Set or unset the Weak Es Model
458-
*
459-
* RFC1122 term for whether host accepts datagram with a dest. address on another interface
460-
* @param model true for Weak Es Model
461-
*/
462-
NS_DEPRECATED_3_41("Use SetStrongEndSystemModel instead")
463-
virtual void SetWeakEsModel(bool model) = 0;
464-
465447
/**
466448
* @brief Set or unset the Strong End System Model
467449
*

src/spectrum/model/three-gpp-channel-model.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -226,21 +226,6 @@ class ThreeGppChannelModel : public MatrixBasedChannelModel
226226
//!< ASA, ZSD, ZSA]
227227
};
228228

229-
/**
230-
* Get the parameters needed to apply the channel generation procedure
231-
* @param channelCondition the channel condition
232-
* @param hBS the height of the BS
233-
* @param hUT the height of the UT
234-
* @param distance2D the 2D distance between tx and rx
235-
* @return the parameters table
236-
*/
237-
NS_DEPRECATED_3_41("Use GetThreeGppTable(const Ptr<const MobilityModel>, const Ptr<const "
238-
"MobilityModel>, Ptr<const ChannelCondition>) instead")
239-
Ptr<const ParamsTable> GetThreeGppTable(Ptr<const ChannelCondition> channelCondition,
240-
double hBS,
241-
double hUT,
242-
double distance2D) const;
243-
244229
/**
245230
* Get the parameters needed to apply the channel generation procedure
246231
* @param aMob the mobility model of node A

0 commit comments

Comments
 (0)