Skip to content

Commit 40ee5e5

Browse files
committed
Remove comments for things that will likely never happen
1 parent 7570b0e commit 40ee5e5

22 files changed

+18
-95
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaDrawingDefs.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ void CLuaDrawingDefs::AddDxFontClass(lua_State* luaVM)
111111
lua_classfunction(luaVM, "getTextWidth", OOP_DxGetTextWidth);
112112
lua_classfunction(luaVM, "getTextSize", ArgumentParser<OOP_DxGetTextSize>);
113113

114-
// lua_classvariable ( luaVM, "height", NULL, "dxGetFontHeight"); // swap arguments, .height[scale] = int(height);
115-
116114
lua_registerclass(luaVM, "DxFont");
117115
}
118116

Client/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ void CLuaEngineDefs::AddClass(lua_State* luaVM)
8888
lua_classfunction(luaVM, "getObjectGroupPhysicalProperty", "engineGetObjectGroupPhysicalProperty");
8989
lua_classfunction(luaVM, "restoreObjectGroupPhysicalProperties", "engineRestoreObjectGroupPhysicalProperties");
9090

91-
// lua_classvariable ( luaVM, "modelLODDistance", "engineSetModelLODDistance", "engineGetModelLODDistance" ); .modelLODDistance[model] = distance
92-
// lua_classvariable ( luaVM, "modelNameFromID", NULL, "engineGetModelNameFromID" ); .modelNameFromID[id] = "name"
93-
// lua_classvariable ( luaVM, "modelIDFromName", NULL, "engineGetModelIDFromName" ); .modelIDFromName["name"] = id
94-
// lua_classvariable ( luaVM, "modelTextureNames", NULL, "engineGetModelTextureNames" ); .modelTextureNames[mode] = {names}
95-
9691
lua_registerstaticclass(luaVM, "Engine");
9792

9893
AddEngineColClass(luaVM);

Client/mods/deathmatch/logic/luadefs/CLuaGUIDefs.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ void CLuaGUIDefs::AddGuiElementClass(lua_State* luaVM)
281281
lua_classvariable(luaVM, "text", "guiSetText", "guiGetText");
282282
lua_classvariable(luaVM, "size", "guiSetSize", "guiGetSize");
283283
lua_classvariable(luaVM, "position", "guiSetPosition", "guiGetPosition");
284-
// lua_classvariable ( luaVM, "property" "guiSetProperty", "guiGetProperty" ); todo: .property[name] = value
285284

286285
lua_registerclass(luaVM, "GuiElement", "Element");
287286
}
@@ -351,7 +350,6 @@ void CLuaGUIDefs::AddGuiLabelClass(lua_State* luaVM)
351350
lua_classvariable(luaVM, "verticalAlign", "guiLabelSetVerticalAlign", NULL);
352351
lua_classvariable(luaVM, "fontHeight", NULL, "guiLabelGetFontHeight");
353352
lua_classvariable(luaVM, "textExtent", NULL, "guiLabelGetTextExtent");
354-
// lua_classvariable ( luaVM, "color", "guiLabelGetColor", "guiLabelSetColor" );
355353

356354
lua_registerclass(luaVM, "GuiLabel", "GuiElement");
357355
}
@@ -541,10 +539,6 @@ void CLuaGUIDefs::AddGuiGridlistClass(lua_State* luaVM)
541539
lua_classvariable(luaVM, "sortingEnabled", "guiGridListSetSortingEnabled", "guiGridListIsSortingEnabled");
542540
lua_classvariable(luaVM, "horizontalScrollPosition", "guiGridListSetHorizontalScrollPosition", "guiGridListGetHorizontalScrollPosition");
543541
lua_classvariable(luaVM, "verticalScrollPosition", "guiGridListGetVerticalScrollPosition", "guiGridListGetVerticalScrollPosition");
544-
// lua_classvariable ( luaVM, "selectedItem", NULL, "guiGridListGetSelectedItem" ); table
545-
// lua_classvariable ( luaVM, "selectedItem", "guiGridListSetSelectedItem", NULL ); .selectedItem[column] = row (row in column) table
546-
// lua_classvariable ( luaVM, "itemColor", "setItemColor", "getItemColor" ); table
547-
// lua_classvariable ( luaVM, "columnTitle", "setColumnTitle", "getColumnTitle" ); table
548542

549543
lua_registerclass(luaVM, "GuiGridList", "GuiElement");
550544
}

Client/mods/deathmatch/logic/luadefs/CLuaMarkerDefs.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ void CLuaMarkerDefs::AddClass(lua_State* luaVM)
5959
lua_classvariable(luaVM, "size", "setMarkerSize", "getMarkerSize");
6060

6161
lua_classvariable(luaVM, "target", SetMarkerTarget, OOP_GetMarkerTarget);
62-
// lua_classvariable ( luaVM, "color", CLuaOOPDefs::SetMarkerColor, CLuaOOPDefs::GetMarkerColor );
6362

6463
lua_registerclass(luaVM, "Marker", "Element");
6564
}

Client/mods/deathmatch/logic/luadefs/CLuaPedDefs.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ void CLuaPedDefs::AddClass(lua_State* luaVM)
111111
lua_classfunction(luaVM, "getTypeIndexFromClothes", "getTypeIndexFromClothes");
112112
lua_classfunction(luaVM, "getClothesByTypeIndex", "getClothesByTypeIndex");
113113
lua_classvariable(luaVM, "validModels", NULL, "getValidPedModels");
114-
// lua_classvariable ( luaVM, "clothesTypeName", NULL, "getClothesTypeName" ); table
115-
// lua_classvariable ( luaVM, "bodyPartName", NULL, "getBodyPartName" ); table
116114

117115
lua_classfunction(luaVM, "canBeKnockedOffBike", "canPedBeKnockedOffBike");
118116
lua_classfunction(luaVM, "doesHaveJetPack", "doesPedHaveJetPack");
@@ -214,12 +212,6 @@ void CLuaPedDefs::AddClass(lua_State* luaVM)
214212
lua_classvariable(luaVM, "walkingStyle", "setPedWalkingStyle", "getPedWalkingStyle");
215213
lua_classvariable(luaVM, "reloadingWeapon", nullptr, "isPedReloadingWeapon");
216214

217-
// lua_classvariable ( luaVM, "ammoInClip", NULL, CLuaOOPDefs::GetPedAmmoInClip ); // .ammoInClip["slot"] (readonly)
218-
// lua_classvariable ( luaVM, "analogControlState", CLuaOOPDefs::SetPedAnalogControlState, CLuaOOPDefs::GetPedAnalogControlState ); //TODO:
219-
// .analogControlState["control"] = value lua_classvariable ( luaVM, "controlState", CLuaOOPDefs::SetPedControlState, CLuaOOPDefs::GetPedControlState ); //
220-
// TODO: .controlState["control"] = value lua_classvariable ( luaVM, "stats", NULL, CLuaOOPDefs::GetPedStat ); // table (readonly) lua_classvariable (
221-
// luaVM, "doingTask", NULL, CLuaOOPDefs::IsPedDoingTask ); // table (readonly) lua_classvariable ( luaVM, "totalAmmo", NULL, CLuaDefs::GetPedTotalAmmo );
222-
// // table readonly
223215
lua_registerclass(luaVM, "Ped", "Element");
224216
}
225217

Client/mods/deathmatch/logic/luadefs/CLuaPlayerDefs.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,6 @@ void CLuaPlayerDefs::AddClass(lua_State* luaVM)
9393
lua_classvariable(luaVM, "nametagText", "setPlayerNametagText", "getPlayerNametagText");
9494
lua_classvariable(luaVM, "nametagShowing", "setPlayerNametagShowing", "isPlayerNametagShowing");
9595

96-
// Static class variables or local only variable
97-
/*
98-
lua_classvariable ( luaVM, "blurLevel", "setPlayerBlurLevel", "getPlayerBlurLevel" );
99-
lua_classvariable ( luaVM, "mapForced", NULL, "isPlayerMapForced" );
100-
lua_classvariable ( luaVM, "mapVisible", NULL, "isPlayerMapVisible" );
101-
lua_classvariable ( luaVM, "money", "setPlayerMoney", "getPlayerMoney" );
102-
lua_classvariable ( luaVM, "serial", NULL, "getPlayerSerial" );
103-
lua_classvariable ( luaVM, "wantedLevel", NULL, "getPlayerWantedLevel" );*/
104-
10596
lua_registerclass(luaVM, "Player", "Ped");
10697
}
10798

Client/mods/deathmatch/logic/luadefs/CLuaPointLightDefs.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ void CLuaPointLightDefs::AddClass(lua_State* luaVM)
4646

4747
lua_classvariable(luaVM, "type", nullptr, "getLightType");
4848
lua_classvariable(luaVM, "radius", "setLightRadius", "getLightRadius");
49-
// lua_classvariable ( luaVM, "color", "setLightColor", "getLightColor" );
5049
lua_classvariable(luaVM, "direction", "setLightDirection", "getLightDirection");
5150

5251
lua_registerclass(luaVM, "Light", "Element");

Client/mods/deathmatch/logic/luadefs/CLuaRadarAreaDefs.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ void CLuaRadarAreaDefs::AddClass(lua_State* luaVM)
4646
lua_classfunction(luaVM, "setColor", "setRadarAreaColor");
4747

4848
lua_classvariable(luaVM, "flashing", "setRadarAreaFlashing", "isRadarAreaFlashing");
49-
// lua_classvariable ( luaVM, "color", "setRadarAreaColor", "getRadarAreaColor" );
5049
lua_classvariable(luaVM, "size", SetRadarAreaSize, OOP_GetRadarAreaSize);
5150

5251
lua_registerclass(luaVM, "RadarArea", "Element");

Client/mods/deathmatch/logic/luadefs/CLuaTeamDefs.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ void CLuaTeamDefs::AddClass(lua_State* luaVM)
4444
lua_classvariable(luaVM, "friendlyFire", NULL, "getTeamFriendlyFire");
4545
lua_classvariable(luaVM, "players", NULL, "getPlayersInTeam");
4646
lua_classvariable(luaVM, "name", NULL, "getTeamName");
47-
// lua_classvariable ( luaVM, "color", NULL, "getTeamColor" );
4847

4948
lua_registerclass(luaVM, "Team", "Element");
5049
}

Client/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,6 @@ void CLuaVehicleDefs::AddClass(lua_State* luaVM)
320320
lua_classvariable(luaVM, "gravity", SetVehicleGravity, OOP_GetVehicleGravity);
321321
lua_classvariable(luaVM, "turnVelocity", SetVehicleTurnVelocity, OOP_GetVehicleTurnVelocity);
322322

323-
// lua_classvariable ( luaVM, "color", CLuaFunctionDefs::SetVehicleColor, CLuaOOPDefs::GetVehicleColor );
324-
// lua_classvariable ( luaVM, "headlightColor", CLuaFunctionDefs::SetHeadLightColor, CLuaOOPDefs::GetHeadLightColor );
325-
326323
lua_registerclass(luaVM, "Vehicle", "Element");
327324
}
328325

0 commit comments

Comments
 (0)