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

Function removeConsumer

Engine/source/console/console.cpp:934–945  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

932
933// dhc - found this empty -- trying what I think is a reasonable impl.
934void removeConsumer(ConsumerCallback consumer)
935{
936 for(S32 i = 0; i < gConsumers.size(); i++)
937 {
938 if (gConsumers[i] == consumer)
939 {
940 // remove it from the list.
941 gConsumers.erase(i);
942 break;
943 }
944 }
945}
946
947void stripColorChars(char* line)
948{

Callers 6

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

Calls 2

sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected