summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-01-03 22:58:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-01-03 22:58:48 (GMT)
commit7b3364f3af43961df7c5c7bcd0fe7407e944f16f (patch)
tree84015cdef112c415d8bd636cda3071f7a87415a5 /src/format
parent64224ffe7d6dc649bdde858ea5c949444eeaa111 (diff)
Removed deprecated direct management of routines.
Diffstat (limited to 'src/format')
-rw-r--r--src/format/format.c70
-rw-r--r--src/format/format.h6
2 files changed, 0 insertions, 76 deletions
diff --git a/src/format/format.c b/src/format/format.c
index 63c4deb..dd70281 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -826,76 +826,6 @@ bool g_binary_format_resolve_symbol(const GBinFormat *format, const vmpa2t *addr
/******************************************************************************
* *
-* Paramètres : format = informations chargées à compléter. *
-* routine = routine à ajouter à la liste. *
-* *
-* Description : Ajoute une routine à la collection du format binaire. *
-* *
-* Retour : - *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-void g_binary_format_add_routine(GBinFormat *format, GBinRoutine *routine)
-{
- format->routines = (GBinRoutine **)realloc(format->routines,
- ++format->routines_count * sizeof(GBinRoutine *));
-
- format->routines[format->routines_count - 1] = routine;
-
-}
-
-
-/******************************************************************************
-* *
-* Paramètres : format = informations chargées à compléter. *
-* routine = routine à ajouter à la liste. *
-* *
-* Description : Retire une routine de la collection du format binaire. *
-* *
-* Retour : - *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-void g_binary_format_remove_routine(GBinFormat *format, GBinRoutine *routine)
-{
- size_t index; /* Indice trouvé à utiliser */
- size_t i; /* Boucle de parcours */
- GBinSymbol *symbol; /* Symbole en cours d'analyse */
-
- index = format->symbols_count;
-
- for (i = 0; i < format->symbols_count && index == format->symbols_count; i++)
- {
- symbol = format->symbols[i];
-
- switch (g_binary_symbol_get_target_type(symbol))
- {
- case STP_ROUTINE:
- case STP_ENTRY_POINT:
-
- if (g_binary_symbol_get_routine(symbol) == routine)
- index = i;
-
- break;
-
- default:
- break;
-
- }
-
- }
-
- _g_binary_format_remove_symbol(format, index);
-
-}
-
-
-/******************************************************************************
-* *
* Paramètres : format = informations chargées à consulter. *
* count = taille du tableau créé. [OUT] *
* *
diff --git a/src/format/format.h b/src/format/format.h
index 18dfda1..b1f0110 100644
--- a/src/format/format.h
+++ b/src/format/format.h
@@ -95,12 +95,6 @@ bool g_binary_format_find_next_symbol_at(const GBinFormat *, const vmpa2t *, GBi
/* Recherche le symbole correspondant à une adresse. */
bool g_binary_format_resolve_symbol(const GBinFormat *, const vmpa2t *, GBinSymbol **, phys_t *);
-/* Ajoute une routine à la collection du format binaire. */
-void g_binary_format_add_routine(GBinFormat *, GBinRoutine *) __attribute__ ((deprecated));
-
-/* Retire une routine de la collection du format binaire. */
-void g_binary_format_remove_routine(GBinFormat *, GBinRoutine *);
-
/* Fournit le prototype de toutes les routines détectées. */
GBinRoutine **g_binary_format_get_routines(const GBinFormat *, size_t *);