Closed GlenDC closed 4 years ago
Looks like the json _temp files are created in the persist/json.go/SaveJSon so not using the safeFile. Suprises me to see no real usage of this temp file though since that code just writes it to the temp file first and then to the normal one.
It it surprising indeed.
RemoveFile does not seem to be used either
I am sure there is more not used. Let's keep that for a new PR where I run some tooling to remove all unused code, that remained in the codebase from past changes by us or Sia.
also removed two unit tests from the persistent pkg, one of the two tests failed, while fixing I realized that the code it was testing was only used in these two tests, hence deleting it all seemed like the more economical decision
fixes #623