Commit 28a5a1e8 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Code cleanup

parent b876600f
...@@ -39,10 +39,8 @@ namespace nas { ...@@ -39,10 +39,8 @@ namespace nas {
class S_NSSAI { class S_NSSAI {
public: public:
S_NSSAI(); S_NSSAI();
// S_NSSAI(uint8_t iei);
S_NSSAI(std::optional<uint8_t> iei, SNSSAI_s snssai); S_NSSAI(std::optional<uint8_t> iei, SNSSAI_s snssai);
~S_NSSAI(); ~S_NSSAI();
// void setS_NSSAI(SNSSAI_s snssai);
int encode2buffer(uint8_t* buf, int len); int encode2buffer(uint8_t* buf, int len);
int decodefrombuffer(uint8_t* buf, int len, const bool is_option = true); int decodefrombuffer(uint8_t* buf, int len, const bool is_option = true);
void getValue(SNSSAI_t& snssai); void getValue(SNSSAI_t& snssai);
...@@ -54,10 +52,8 @@ class S_NSSAI { ...@@ -54,10 +52,8 @@ class S_NSSAI {
std::string ToString(); std::string ToString();
private: private:
// uint8_t _iei;
std::optional<int8_t> iei_; std::optional<int8_t> iei_;
uint8_t length; uint8_t length;
// SNSSAI_s SNSSAI;
uint8_t sst_; uint8_t sst_;
std::optional<int32_t> sd_; std::optional<int32_t> sd_;
std::optional<int8_t> mapped_hplmn_sst_; std::optional<int8_t> mapped_hplmn_sst_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment