Skip to content

Commit

Permalink
fix: Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Feb 29, 2024
1 parent 19a0c87 commit d8169e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions app/src/parser_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,6 @@ parser_error_t readContent(CborValue *content_map, parser_tx_t *v) {
}
CHECK_PARSER_ERR(readPayload(v, fields->method_args.dataPtr, fields->method_args.len))
} else {
// TODO: Assume this will error as we now only support candid transactions?

// READ_STRING(content_map, "arg", fields->method_args)
// CHECK_PARSER_ERR(readPayload(v, fields->method_args.data, fields->method_args.len))
// fields->method_args.dataPtr = fields->method_args.data;
return parser_unexpected_type;
}

Expand Down
15 changes: 0 additions & 15 deletions app/src/parser_txdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ typedef enum {
} txtype_e;

typedef enum {
/* pb_unknown = 0x00, //default is not accepted */
/* pb_sendrequest = 0x01, */
/* pb_manageneuron = 0x02, */
/* pb_listneurons = 0x03, */
/* pb_claimneurons = 0x04, */

candid_transfer = 0xF001,
candid_manageneuron = 0xF002,
candid_updatenodeprovider = 0xF003,
Expand All @@ -79,10 +73,7 @@ typedef enum {
Disburse = 3,
Spawn = 4,
RegisterVote = 7,
// Register_Vote = 10,
Split = 11,
// DisburseToNeuron = 12,
// ClaimOrRefresh = 13,
Merge = 1000,
SpawnCandid = 1001,
StakeMaturityCandid = 1002,
Expand Down Expand Up @@ -170,12 +161,9 @@ typedef struct {
uint8_t is_sns;

union {
// ic_nns_governance_pb_v1_ManageNeuron ic_nns_governance_pb_v1_ManageNeuron;
candid_ManageNeuron_t candid_manageNeuron;
candid_UpdateNodeProvider_t candid_updateNodeProvider;
candid_ListNeurons_t candid_listNeurons;
// SendRequest SendRequest;
// ListNeurons ListNeurons;
sns_ManageNeuron_t sns_manageNeuron;
icrc_transfer_t icrcTransfer;
candid_transfer_t candid_transfer;
Expand All @@ -188,9 +176,6 @@ typedef struct {
pathArray_t paths;
} state_read_t;

///
///

typedef struct {
txtype_e txtype; // union selector

Expand Down

0 comments on commit d8169e6

Please sign in to comment.