Skip to content

Commit

Permalink
fix: remote duplicate comment in pythontarget.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Depetrol authored and EhsanKhodadad committed Aug 1, 2024
1 parent 8ae614d commit d501e2b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions python/lib/pythontarget.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,11 +696,6 @@ PyObject* get_python_function(string module, string class, int instance_id, stri
return Py_None;
}

/**
* Load the Serializer class from package name
* @param package_name Name of the python package to load
* @return Initialized Serializer class
*/
PyObject* load_serializer(string package_name) {
// import package_name
PyObject* pName = PyUnicode_DecodeFSDefault(package_name);
Expand All @@ -726,12 +721,6 @@ PyObject* load_serializer(string package_name) {
return custom_serializer;
}

/**
* Serialize Python object to a bytes object using external serializer
* @param obj The Python object to serialize
* @param custom_serializer The custom Serializer class
* @return Serialized Python bytes object
*/
PyObject* custom_serialize(PyObject* obj, PyObject* custom_serializer) {
if (custom_serializer == NULL)
lf_print_error_and_exit("Serializer is null.");
Expand All @@ -747,12 +736,6 @@ PyObject* custom_serialize(PyObject* obj, PyObject* custom_serializer) {
return serialized_pyobject;
}

/**
* Deserialize Python object from a bytes object using external serializer
* @param serialized_pyobject The serialized bytes Python object
* @param custom_serializer The custom Serializer class
* @return Deserialized Python object
*/
PyObject* custom_deserialize(PyObject* serialized_pyobject, PyObject* custom_serializer) {
if (custom_serializer == NULL)
lf_print_error_and_exit("Serializer is null.");
Expand Down

0 comments on commit d501e2b

Please sign in to comment.