Skip to content

Commit 963d7f7

Browse files
authored
refactor: Remove superfluous variable init comments (#1876)
1 parent 7751544 commit 963d7f7

File tree

233 files changed

+30
-1037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+30
-1037
lines changed

Core/GameEngine/Include/GameClient/View.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,8 @@ class ViewLocation
311311
ViewLocation()
312312
{
313313
m_valid = FALSE;
314-
//Added By Sadullah Nader
315-
//Initialization(s) inserted
316314
m_pos.zero();
317315
m_angle = m_pitch = m_zoom = 0.0;
318-
//
319316
}
320317

321318
const Coord3D& getPosition() const { return m_pos; }

Core/GameEngine/Source/Common/Audio/GameAudio.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ AudioManager::AudioManager() :
152152
m_hardwareAccel(FALSE),
153153
m_musicPlayingFromCD(FALSE)
154154
{
155-
// Added by Sadullah Nader
156155
m_adjustedVolumes.clear();
157156
m_audioRequests.clear();
158157
m_listenerPosition.zero();
@@ -166,8 +165,6 @@ AudioManager::AudioManager() :
166165
m_systemSoundVolume = 0.0f;
167166
m_systemSpeechVolume = 0.0f;
168167
m_volumeHasChanged = FALSE;
169-
//
170-
171168
m_listenerOrientation.set(0.0, 1.0, 0.0);
172169
theAudioHandlePool = AHSV_FirstHandle;
173170
m_audioSettings = NEW AudioSettings;

Core/GameEngine/Source/Common/System/RAMFile.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@
104104
RAMFile::RAMFile()
105105
: m_size(0),
106106
m_data(NULL),
107-
//Added By Sadullah Nader
108-
//Initializtion(s) inserted
109107
m_pos(0)
110-
//
111108
{
112109

113110
}

Core/GameEngine/Source/Common/System/XferCRC.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ XferCRC::XferCRC( void )
4242
{
4343

4444
m_xferMode = XFER_CRC;
45-
//Added By Sadullah Nader
46-
//Initialization(s) inserted
4745
m_crc = 0;
48-
//
4946
}
5047

5148
//-------------------------------------------------------------------------------------------------

Core/GameEngine/Source/GameClient/View.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ View *TheTacticalView = NULL;
4141

4242
View::View( void )
4343
{
44-
//Added By Sadullah Nader
45-
//Initialization(s) inserted
4644
m_viewLockedUntilFrame = 0u;
4745
m_currentHeightAboveGround = 0.0f;
4846
m_defaultAngle = 0.0f;
@@ -58,7 +56,6 @@ View::View( void )
5856
m_snapImmediate = FALSE;
5957
m_terrainHeightUnderCamera = 0.0f;
6058
m_zoom = 0.0f;
61-
//
6259
m_pos.x = 0;
6360
m_pos.y = 0;
6461
m_width = 0;

Core/GameEngine/Source/GameNetwork/Connection.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,12 @@ Connection::Connection() {
4343
m_frameGrouping = 1;
4444
m_isQuitting = false;
4545
m_quitTime = 0;
46-
// Added By Sadullah Nader
47-
// clearing out the latency tracker
4846
m_averageLatency = 0.0f;
4947
Int i;
5048
for(i = 0; i < CONNECTION_LATENCY_HISTORY_LENGTH; i++)
5149
{
5250
m_latencies[i] = 0.0f;
5351
}
54-
// End Add
5552
}
5653

5754
/**

Core/GameEngine/Source/GameNetwork/DisconnectManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838

3939
DisconnectManager::DisconnectManager()
4040
{
41-
// Added By Sadullah Nader
42-
// Initializations missing and needed
4341
Int i;
4442
m_currentPacketRouterIndex = 0;
4543
m_lastFrame = 0;

Core/GameEngine/Source/GameNetwork/DownloadManager.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@ DownloadManager::DownloadManager()
3737
{
3838
m_download = NEW CDownload(this);
3939
m_wasError = m_sawEnd = false;
40-
41-
//Added By Sadullah Nader
42-
//Initializations missing and needed
43-
4440
m_queuedDownloads.clear();
45-
46-
//
47-
4841
m_statusString = TheGameText->fetch("FTP:StatusIdle");
4942

5043
// ----- Initialize Winsock -----

Core/GameEngine/Source/GameNetwork/FirewallHelper.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,12 @@ FirewallHelperClass * createFirewallHelper()
8383

8484
FirewallHelperClass::FirewallHelperClass(void)
8585
{
86-
//Added Sadullah Nader
87-
//Initializations missing and needed
8886
m_currentTry = 0;
8987
m_numManglers = 0;
9088
m_numResponses = 0;
9189
m_packetID = 0;
9290
m_timeoutLength = 0;
9391
m_timeoutStart = 0;
94-
//
95-
9692
m_behavior = FIREWALL_TYPE_UNKNOWN;
9793
m_lastBehavior = FIREWALL_TYPE_UNKNOWN;
9894
m_sourcePortAllocationDelta = 0;

Core/GameEngine/Source/GameNetwork/FrameData.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ FrameData::FrameData()
3737
m_commandList = NULL;
3838
m_commandCount = 0;
3939
m_frameCommandCount = -1;
40-
//Added By Sadullah Nader
41-
//Initializations missing and needed
4240
m_lastFailedCC = 0;
4341
m_lastFailedFrameCC = 0;
44-
//
4542
}
4643

4744
/**

0 commit comments

Comments
 (0)