MCPcopy Create free account
hub / github.com/MariaDB/server / DeleteKey

Method DeleteKey

storage/connect/json.cpp:1220–1231  ·  view source on GitHub ↗

/ Delete a value corresponding to the given key. */ /

Source from the content-addressed store, hash-verified

1218/* Delete a value corresponding to the given key. */
1219/***********************************************************************/
1220void JOBJECT::DeleteKey(PCSZ key)
1221{
1222 PJPR jp, *pjp = &First;
1223
1224 for (jp = First; jp; jp = jp->Next)
1225 if (!strcmp(jp->Key, key)) {
1226 *pjp = jp->Next;
1227 break;
1228 } else
1229 pjp = &jp->Next;
1230
1231} // end of DeleteKey
1232
1233/***********************************************************************/
1234/* True if void or if all members are nulls. */

Callers 4

bson_object_deleteFunction · 0.45
bbin_object_deleteFunction · 0.45
json_object_deleteFunction · 0.45
jbin_object_deleteFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected