Skip to content

Commit 90d84fb

Browse files
committed
remove old code
1 parent 2fc7c8b commit 90d84fb

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

app/src/parser_impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ extern parser_tx_t parser_tx_obj;
2727

2828
parser_error_t parser_init(parser_context_t *ctx, const uint8_t *buffer, uint16_t bufferSize);
2929

30-
//parser_error_t _read(const parser_context_t *c, parser_tx_t *v);
31-
3230
parser_error_t _readTokenTransfer(const parser_context_t *c, parser_tx_t *v);
3331
parser_error_t _readTransactionStateRead(const parser_context_t *c, parser_tx_t *v);
3432

tests/cbor_parser.cpp

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -94,38 +94,6 @@ namespace {
9494

9595
_cbor_value_copy_string(&contents, buffer, &stringLen, NULL);
9696
EXPECT_EQ(stringLen,32);
97-
98-
99-
// err = cbor_value_get_int64(&contents, &val);
100-
// EXPECT_EQ(err, CborNoError);
101-
// EXPECT_EQ(val, 1);
102-
// err = cbor_value_advance_fixed(&contents);
103-
// EXPECT_EQ(err, CborNoError);
104-
105-
//
106-
// EXPECT_EQ(type, CborArrayType);
107-
//
108-
// err = cbor_value_enter_container(&it, &contents);
109-
110-
// err = cbor_value_enter_container(&contents, &subvalue);
111-
// EXPECT_EQ(err, CborNoError);
112-
// CborValue array;
113-
// type = cbor_value_get_type(&contents);
114-
// EXPECT_EQ(type, CborArrayType);
115-
//
116-
// err = cbor_value_get_map_length(&contents, &mapLen);
117-
// EXPECT_EQ(err, CborNoError);
118-
//
119-
// EXPECT_EQ(mapLen, 6);
120-
121-
// size_t val = 0;
122-
// char buffer[100];
123-
//
124-
// err = cbor_value_get_string_length(&contents, &val);
125-
// EXPECT_EQ(err, CborNoError);
126-
// EXPECT_EQ(val, 71);
127-
// err = _cbor_value_copy_string(&contents, buffer, &val, nullptr);
128-
// EXPECT_EQ(err, CborNoError);
12997
}
13098

13199
TEST(CBORParserTest, TokenTransfer) {

0 commit comments

Comments
 (0)