summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/pychrysa.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysa/pychrysa.c')
-rw-r--r--plugins/pychrysa/pychrysa.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/plugins/pychrysa/pychrysa.c b/plugins/pychrysa/pychrysa.c
index f4cfe90..a404c1a 100644
--- a/plugins/pychrysa/pychrysa.c
+++ b/plugins/pychrysa/pychrysa.c
@@ -43,7 +43,6 @@
#include "helpers.h"
#include "plugin.h"
-#include "quirks.h"
#include "analysis/module.h"
#include "arch/module.h"
#include "common/module.h"
@@ -68,9 +67,6 @@ static PyObject *py_chrysalide_version(PyObject *, PyObject *);
/* Fournit la version du greffon pour Python. */
static PyObject *py_chrysalide_mod_version(PyObject *, PyObject *);
-/* Recherche et fournit si elle existe une valeur globale. */
-static PyObject *py_chrysalide_get_global_gobject(PyObject *, PyObject *);
-
/* Détermine si l'interpréteur lancé est celui pris en compte. */
static bool is_current_abi_suitable(void);
@@ -159,41 +155,6 @@ static PyObject *py_chrysalide_mod_version(PyObject *self, PyObject *args)
/******************************************************************************
* *
-* Paramètres : self = NULL car méthode statique. *
-* args = contient la clef d'accès à un champ particulier. *
-* *
-* Description : Recherche et fournit si elle existe une valeur globale. *
-* *
-* Retour : Object attaché à l'espace de référencement global ou NULL. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static PyObject *py_chrysalide_get_global_gobject(PyObject *self, PyObject *args)
-{
- PyObject *result; /* Instance à retourner */
- const char *key; /* Désignation du champ visé */
- int ret; /* Bilan de lecture des args. */
- void *data; /* Donnée quelconque */
-
- ret = PyArg_ParseTuple(args, "s", &key);
- if (!ret) Py_RETURN_NONE;
-
- data = g_object_get_data(get_internal_ref(), key);
- if (data == NULL) Py_RETURN_NONE;
-
- if (!G_IS_OBJECT(data)) Py_RETURN_NONE;
-
- result = pygobject_new(G_OBJECT(data));
-
- return result;
-
-}
-
-
-/******************************************************************************
-* *
* Paramètres : - *
* *
* Description : Détermine si l'interpréteur lancé est celui pris en compte. *
@@ -348,10 +309,6 @@ PyMODINIT_FUNC PyInit_pychrysalide(void)
METH_NOARGS,
"mod_version(/)\n--\n\nProvide the version number of Chrysalide module for Python."
},
- { "get_global_gobject", py_chrysalide_get_global_gobject,
- METH_VARARGS,
- "get_global_gobject(key, /)\n--\n\nRetrieve if it exists a global GObject registered with the given key."
- },
{ NULL }
};
@@ -558,8 +515,6 @@ G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin, GObject *ref)
DIR *dir; /* Répertoire à parcourir */
int ret; /* Bilan de préparatifs */
- define_internal_ref(ref);
-
/* Définition des zones d'influence */
dir = opendir(PLUGINS_DIR G_DIR_SEPARATOR_S "python");