summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-06-21 21:17:06 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-06-21 21:17:06 (GMT)
commitd2b5699feb24a5141a3790970dfa5b1a288df4ce (patch)
tree0bfc4fc2443c81215cfefd37ac3dd8af17e3e4dc
parent6183dcf34a45b7250b63add608c02e96bf53e096 (diff)
Deleted dead code.
-rw-r--r--plugins/pychrysalide/arch/module.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/plugins/pychrysalide/arch/module.c b/plugins/pychrysalide/arch/module.c
index 5cd6c17..d0bc1f5 100644
--- a/plugins/pychrysalide/arch/module.c
+++ b/plugins/pychrysalide/arch/module.c
@@ -45,67 +45,6 @@
-/* Définit les constantes de base pour une architecture. */
-static bool py_base_define_constants(PyTypeObject *);
-
-
-
-/******************************************************************************
-* *
-* Paramètres : obj_type = type dont le dictionnaire est à compléter. *
-* *
-* Description : Définit les constantes de base pour une architecture. *
-* *
-* Retour : true en cas de succès de l'opération, false sinon. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static bool py_base_define_constants(PyTypeObject *obj_type)
-{
- bool result; /* Bilan à retourner */
-
- result = true;
-
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_UNDEFINED);
-
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS_UNSIGNED);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS_UNSIGNED);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS_UNSIGNED);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS_UNSIGNED);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS_UNSIGNED);
-
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS_SIGNED);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS_SIGNED);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS_SIGNED);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS_SIGNED);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS_SIGNED);
-
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_4_BITS);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_8_BITS);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_16_BITS);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_32_BITS);
- if (result) result = PyDict_AddULongMacro(obj_type, MDS_64_BITS);
-
- /**
- * Comme il existe déjà le module struct, de nouvelles primitives de
- * lecture/écriture de données sensibles au boutisme sont inutiles dans Python.
- *
- * On choisit donc de ne pas créer de nouvelle entité dans le module Chrysalide
- * pour exporter les constantes suivantes.
- */
-
- if (result) result = PyDict_AddULongMacro(obj_type, SRE_LITTLE);
- if (result) result = PyDict_AddULongMacro(obj_type, SRE_LITTLE_WORD);
- if (result) result = PyDict_AddULongMacro(obj_type, SRE_BIG_WORD);
- if (result) result = PyDict_AddULongMacro(obj_type, SRE_BIG);
-
- return result;
-
-}
-
-
/******************************************************************************
* *
* Paramètres : super = module dont la définition est à compléter. *
@@ -141,8 +80,6 @@ bool add_arch_module(PyObject *super)
if (result) result = add_arch_instructions_module(module);
if (result) result = add_arch_operands_module(module);
- if (result) result = py_base_define_constants(Py_TYPE(module));
-
return result;
}