aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-28 14:34:25 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:25 +0100
commite45e2f03cf40b5826632ab95cbc79c487249897a (patch)
tree2081b07d4d23c50960809719cc3fd533d0aab4c3
parent3b1926164b2e0eb91cf3a7e9c854cca85f7d4c8e (diff)
downloadlibnitrokey-e45e2f03cf40b5826632ab95cbc79c487249897a.tar.gz
libnitrokey-e45e2f03cf40b5826632ab95cbc79c487249897a.tar.bz2
Mark unused commands and remove obsolete code
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--include/command_id.h8
-rw-r--r--include/stick20_commands.h3
2 files changed, 4 insertions, 7 deletions
diff --git a/include/command_id.h b/include/command_id.h
index aa65dd3..9cace2f 100644
--- a/include/command_id.h
+++ b/include/command_id.h
@@ -79,14 +79,14 @@ enum class CommandID : uint8_t {
ENABLE_READONLY_UNCRYPTED_LUN = 0x20 + 9,
ENABLE_READWRITE_UNCRYPTED_LUN = 0x20 + 10,
- SEND_PASSWORD_MATRIX = 0x20 + 11,
- SEND_PASSWORD_MATRIX_PINDATA = 0x20 + 12,
- SEND_PASSWORD_MATRIX_SETUP = 0x20 + 13,
+ SEND_PASSWORD_MATRIX = 0x20 + 11, //@unused
+ SEND_PASSWORD_MATRIX_PINDATA = 0x20 + 12, //@unused
+ SEND_PASSWORD_MATRIX_SETUP = 0x20 + 13, //@unused
GET_DEVICE_STATUS = 0x20 + 14,
SEND_DEVICE_STATUS = 0x20 + 15,
- SEND_HIDDEN_VOLUME_PASSWORD = 0x20 + 16,
+ SEND_HIDDEN_VOLUME_PASSWORD = 0x20 + 16, //@unused
SEND_HIDDEN_VOLUME_SETUP = 0x20 + 17,
SEND_PASSWORD = 0x20 + 18,
SEND_NEW_PASSWORD = 0x20 + 19,
diff --git a/include/stick20_commands.h b/include/stick20_commands.h
index 676b3df..237118d 100644
--- a/include/stick20_commands.h
+++ b/include/stick20_commands.h
@@ -141,8 +141,6 @@ namespace nitrokey {
CommandTransaction;
};
-// class FillSDCardWithRandomChars : public PasswordCommand<CommandID::FILL_SD_CARD_WITH_RANDOM_CHARS> {};
-
class FillSDCardWithRandomChars : Command<CommandID::FILL_SD_CARD_WITH_RANDOM_CHARS> {
public:
@@ -275,7 +273,6 @@ namespace nitrokey {
CommandTransaction;
};
- class SendHiddenVolumePassword : public PasswordCommand<CommandID::SEND_HIDDEN_VOLUME_PASSWORD> {};
class SetupHiddenVolume : Command<CommandID::SEND_HIDDEN_VOLUME_SETUP> {
public: