diff options
Diffstat (limited to 'gd/packet/parser/fields/body_field.cc')
-rw-r--r-- | gd/packet/parser/fields/body_field.cc | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/gd/packet/parser/fields/body_field.cc b/gd/packet/parser/fields/body_field.cc index 557f18416..5e00b68a8 100644 --- a/gd/packet/parser/fields/body_field.cc +++ b/gd/packet/parser/fields/body_field.cc @@ -20,23 +20,12 @@ const std::string BodyField::kFieldType = "BodyField"; BodyField::BodyField(ParseLocation loc) : PacketField("body", loc) {} -void BodyField::SetSizeField(const SizeField* size_field) { - if (size_field_ != nullptr) { - ERROR(this, size_field_, size_field) << "The size field for the body has already been assigned."; - } - size_field_ = size_field; -} - const std::string& BodyField::GetFieldType() const { return BodyField::kFieldType; } Size BodyField::GetSize() const { - if (size_field_ == nullptr) { - return Size(0); - } - std::string dynamic_size = "(" + size_field_->GetName() + " * 8)"; - return dynamic_size; + return Size(0); } std::string BodyField::GetDataType() const { @@ -71,16 +60,3 @@ void BodyField::GenInserter(std::ostream&) const { void BodyField::GenValidator(std::ostream&) const { // Do nothing } - -void BodyField::GenStringRepresentation(std::ostream& s, std::string accessor) const { - s << "\"BODY REPRESENTATION_UNIMPLEMENTED " << accessor << " \""; -} - -std::string BodyField::GetRustDataType() const { - return GetDataType(); -} - -void BodyField::GenRustGetter(std::ostream&, Size, Size) const { -} - -void BodyField::GenRustWriter(std::ostream&, Size, Size) const {} |