Skip to content

Commit 0034151

Browse files
dpugliese6GiovanniGrieco
authored andcommitted
comments: remove useless TODO comments
1 parent 527d153 commit 0034151

9 files changed

+3
-22
lines changed

src/application/nat-application.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ NatApplication::RecvPktFromExtNetDev(Ptr<NetDevice> netdev,
120120
const Address& sender)
121121
{
122122
NS_LOG_FUNCTION(this << netdev << pkt << protocol << sender);
123-
// TODO: This is a fake address. How can we easily retrieve the receiver IP Address from the
124-
// packet?
125123
auto receiver = Ipv4Address::GetZero();
126124

127125
return RecvPktFromNetDev(netdev,
@@ -154,7 +152,6 @@ NatApplication::RecvPktFromNetDev(Ptr<NetDevice> netdev,
154152
toBeSent->RemoveHeader(ipHdr);
155153
ipv4Protocol = ipHdr.GetProtocol();
156154

157-
// TODO: if (ipv4Protocol == 6 /* TCP */)
158155
if (ipv4Protocol == 17 /* UDP */)
159156
{
160157
toBeSent->RemoveHeader(udpHdr);
@@ -166,7 +163,6 @@ NatApplication::RecvPktFromNetDev(Ptr<NetDevice> netdev,
166163
auto outPort = m_natTable[entry];
167164
if (!outPort)
168165
{
169-
// TODO: TCP could break!
170166
if (m_curNatPort <= 0 || m_curNatPort >= UINT16_MAX)
171167
m_curNatPort = 1;
172168

@@ -204,7 +200,6 @@ NatApplication::RecvPktFromNetDev(Ptr<NetDevice> netdev,
204200
toBeSent->RemoveHeader(ipHdr);
205201
ipv4Protocol = ipHdr.GetProtocol();
206202

207-
// TODO: if (ipv4Protocol == 6 /* TCP */)
208203
if (ipv4Protocol == 17 /* UDP */)
209204
{
210205
toBeSent->RemoveHeader(udpHdr);

src/application/tcp-stub-client-application.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ TcpStubClientApplication::StartApplication()
6060
NS_LOG_FUNCTION(this);
6161
TcpClientServerApplication::StartApplication();
6262

63-
Simulator::ScheduleNow(&TcpStubClientApplication::Connect,
64-
this); // TODO: parametrize Seconds (0.5)
63+
Simulator::ScheduleNow(&TcpStubClientApplication::Connect, this);
6564
// Simulator::Schedule (m_txInterval, &TcpStubClientApplication::SendPacket, this);
6665
}
6766

src/configuration/helper/null-ntn-demo-mac-layer-simulation-helper.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ NullNtnDemoMacLayerSimulationHelper::ComputeSnr(ComputeSnrParams& params) const
345345
else
346346
{
347347
// fallback to Topocentric
348-
// TODO: need a threshold to understand if we can simplify to
349-
// Topocentric, or it is better to use a projection
350348
return mm->GetPosition(PositionType::TOPOCENTRIC);
351349
}
352350
};

src/irs/irs-assisted-spectrum-channel.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ IrsAssistedSpectrumChannel::StartTx(Ptr<SpectrumSignalParameters> txParams)
161161
{
162162
NS_LOG_LOGIC("converting txPowerSpectrum SpectrumModelUids "
163163
<< txSpectrumModelUid << " --> " << rxSpectrumModelUid);
164-
auto rxConverterIt = txInfoIt->second.m_spectrumConverterMap.find(
165-
rxSpectrumModelUid); // TODO: const ref?
164+
auto rxConverterIt = txInfoIt->second.m_spectrumConverterMap.find(rxSpectrumModelUid);
166165
if (rxConverterIt == txInfoIt->second.m_spectrumConverterMap.end())
167166
{
168167
// No converter means TX SpectrumModel is orthogonal to RX SpectrumModel

src/irs/serving-configurator/defined-serving-configurator.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ DefinedServingConfigurator::ScheduleUpdates()
7575
{
7676
if (periodend <= periodstart + nextupdate)
7777
{
78-
// TODO: schedule patch and serving configurator destruction?
79-
// Simulator::Schedule (Seconds (periodstart + nextupdate),
80-
// &DefinedServingConfigurator::DoDispose, this);
8178
break; // we have reached the end of the period, no need to continue
8279
}
8380
if (nextupdate > 0)

src/irs/serving-configurator/periodic-serving-configurator.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ PeriodicServingConfigurator::ScheduleUpdates()
7777
{
7878
if (periodend <= periodstart + nextupdate)
7979
{
80-
// TODO: schedule patch and serving configurator destruction?
81-
// Simulator::Schedule (Seconds (nextupdate), &PeriodicServingConfigurator::DoDispose,
82-
// this);
8380
break; // we have reached the end of the period, no need to continue
8481
}
8582
if (nextupdate > 0)

src/irs/serving-configurator/random-serving-configurator.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ RandomServingConfigurator::ScheduleUpdates()
8484
{
8585
if (periodend <= periodstart + nextupdate)
8686
{
87-
// TODO: schedule patch and serving configurator destruction?
88-
// Simulator::Schedule (Seconds (nextupdate), &PeriodicServingConfigurator::DoDispose,
89-
// this);
9087
break; // we have reached the end of the period, no need to continue
9188
}
9289
if (nextupdate > 0)

src/mobility/parametric-speed/parametric-speed-drone-mobility-model.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class ParametricSpeedDroneMobilityModel : public GeocentricMobilityModel
4646

4747
ParametricSpeedDroneMobilityModel();
4848

49-
// TODO: Put into generic Utility object
5049
static FlightPlan ProjectedToGeographicCoordinates(
5150
const FlightPlan& flightPlan,
5251
GeographicPositions::EarthSpheroidType earthType);

src/report/wifi-phy-layer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ WifiPhyLayer::DoInitialize()
157157
{
158158
NS_LOG_FUNCTION_NOARGS();
159159

160-
m_address = GetDeviceAddress(); // TODO: it would be usedul to report it in the XML file.
160+
m_address = GetDeviceAddress();
161161
DoInitializeRssiMonitor();
162162

163163
ProtocolLayer::DoInitialize();

0 commit comments

Comments
 (0)