From d31fee5d228981fcd8b950e5c17efe668796c92c Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Wed, 10 Jan 2024 11:33:38 -0500 Subject: [PATCH] unused function --- shared/nvstore.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/shared/nvstore.py b/shared/nvstore.py index 7a79880e..527acb6b 100644 --- a/shared/nvstore.py +++ b/shared/nvstore.py @@ -189,13 +189,6 @@ class SettingsObject: # "old" slot was not in use pass - def _deny_slot(self, pos): - # write garbage to look legit in a slot - with self._open_file(pos, 'wb') as fd: - for i in range(0, 4096, 256): - h = ngu.random.bytes(256) - fd.write(h) - def _read_slot(self, pos, decryptor): # Mk4 is just reading a binary file and decrypt as we go. with self._open_file(pos) as fd: