MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / removeConsumer

Function removeConsumer

Engine/source/console/console.cpp:882–893  ·  view source on GitHub ↗

dhc - found this empty -- trying what I think is a reasonable impl.

Source from the content-addressed store, hash-verified

880
881// dhc - found this empty -- trying what I think is a reasonable impl.
882void removeConsumer(ConsumerCallback consumer)
883{
884 for(S32 i = 0; i < gConsumers.size(); i++)
885 {
886 if (gConsumers[i] == consumer)
887 {
888 // remove it from the list.
889 gConsumers.erase(i);
890 break;
891 }
892 }
893}
894
895void stripColorChars(char* line)
896{

Callers 6

~TelnetConsoleMethod · 0.85
destroyFunction · 0.85
~TelnetDebuggerMethod · 0.85
Con_RemoveConsumerFunction · 0.85
~StdConsoleMethod · 0.85
~WinConsoleMethod · 0.85

Calls 2

sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected