core: tidy up command creation/replacement
commita712f98d210b8554020019a0162a65e6721c9e97
authorSteve Bennett <steveb@workware.net.au>
Fri, 12 Jun 2020 03:34:26 +0000 (12 13:34 +1000)
committerSteve Bennett <steveb@workware.net.au>
Fri, 12 Jun 2020 04:32:43 +0000 (12 14:32 +1000)
tree561c248682f2c6dea815a5da650ee7d9bd28a185
parentab1f35fe2502cf746ac2907c3ab710a0ca2f0b6b
core: tidy up command creation/replacement

We can simply use Jim_ReplaceHashEntry() when replacing a command
in non-local mode now that the proc epoch doesn't need to be incremented.

And JimRemoveHashEntry() only has one caller, so fold it into
Jim_DeleteHashEntry()

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c