summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-02-22 16:01:46 +0100
committerAleksander Morgado <aleksander@aleksander.es>2022-02-27 00:25:30 +0100
commitb081f09e02f579227aff496de9108a5d4e641f40 (patch)
tree1cf1a1de3b207488dd84b85c655e2e852cd7bb87
parent4236aa916e036cb7a496fcf68ad96a808644ec65 (diff)
downloadlibqmi-b081f09e02f579227aff496de9108a5d4e641f40.tar.gz
build-aux,codegen: remove emit_helper_methods()
No longer needed anywhere.
-rw-r--r--build-aux/qmi-codegen/Field.py1
-rw-r--r--build-aux/qmi-codegen/Variable.py8
-rw-r--r--build-aux/qmi-codegen/VariableArray.py8
-rw-r--r--build-aux/qmi-codegen/VariableSequence.py9
-rw-r--r--build-aux/qmi-codegen/VariableStruct.py9
5 files changed, 0 insertions, 35 deletions
diff --git a/build-aux/qmi-codegen/Field.py b/build-aux/qmi-codegen/Field.py
index 40929ed1..c9ab6c65 100644
--- a/build-aux/qmi-codegen/Field.py
+++ b/build-aux/qmi-codegen/Field.py
@@ -106,7 +106,6 @@ class Field:
if TypeFactory.is_type_emitted(self.fullname) is False:
TypeFactory.set_type_emitted(self.fullname)
self.variable.emit_types(hfile, cfile, self.since, False)
- self.variable.emit_helper_methods(hfile, cfile)
"""
diff --git a/build-aux/qmi-codegen/Variable.py b/build-aux/qmi-codegen/Variable.py
index 9ae9c8f9..1ce79351 100644
--- a/build-aux/qmi-codegen/Variable.py
+++ b/build-aux/qmi-codegen/Variable.py
@@ -87,14 +87,6 @@ class Variable:
"""
- Emits the code to custom helper methods needed by this variable.
- They are emitted as early as possible.
- """
- def emit_helper_methods(self, hfile, cfile):
- pass
-
-
- """
Emits the code involved in reading the variable from the raw byte stream
into the specific private format.
"""
diff --git a/build-aux/qmi-codegen/VariableArray.py b/build-aux/qmi-codegen/VariableArray.py
index 12dd3e4f..e9b8b7fe 100644
--- a/build-aux/qmi-codegen/VariableArray.py
+++ b/build-aux/qmi-codegen/VariableArray.py
@@ -94,14 +94,6 @@ class VariableArray(Variable):
"""
- Emits the code to clear the element of the array
- """
- def emit_helper_methods(self, hfile, cfile):
- self.array_element.emit_helper_methods(hfile, cfile)
-
-
-
- """
Reading an array from the raw byte buffer is just about providing a loop to
read every array element one by one.
"""
diff --git a/build-aux/qmi-codegen/VariableSequence.py b/build-aux/qmi-codegen/VariableSequence.py
index 86888a19..1a385577 100644
--- a/build-aux/qmi-codegen/VariableSequence.py
+++ b/build-aux/qmi-codegen/VariableSequence.py
@@ -63,15 +63,6 @@ class VariableSequence(Variable):
"""
- Emit helper methods for all types in the struct
- """
- def emit_helper_methods(self, hfile, cfile):
- # Emit for each member
- for member in self.members:
- member['object'].emit_helper_methods(hfile, cfile)
-
-
- """
Reading the contents of a sequence is just about reading each of the sequence
fields one by one.
"""
diff --git a/build-aux/qmi-codegen/VariableStruct.py b/build-aux/qmi-codegen/VariableStruct.py
index 4e658083..855d8cc1 100644
--- a/build-aux/qmi-codegen/VariableStruct.py
+++ b/build-aux/qmi-codegen/VariableStruct.py
@@ -120,15 +120,6 @@ class VariableStruct(Variable):
"""
- Emit helper methods for all types in the struct
- """
- def emit_helper_methods(self, hfile, cfile):
- # Emit for each member
- for member in self.members:
- member['object'].emit_helper_methods(hfile, cfile)
-
-
- """
Reading the contents of a struct is just about reading each of the struct
fields one by one.
"""