aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oid_resolv.c
diff options
context:
space:
mode:
authorgal <gal@f5534014-38df-0310-8fa8-9805f1628bb7>2006-05-11 16:42:38 +0000
committergal <gal@f5534014-38df-0310-8fa8-9805f1628bb7>2006-05-11 16:42:38 +0000
commit72ff56547147bb346157e603c7eb1365c835ca8e (patch)
tree1de83b1eeea4c8f44d0d01a36a7748a9ea6cb545 /epan/oid_resolv.c
parent0c88e6aa597c59cdb2649df70850bb3770d9194b (diff)
Removal of useless "Field Information" introduced in r18125
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18133 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/oid_resolv.c')
-rw-r--r--epan/oid_resolv.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/epan/oid_resolv.c b/epan/oid_resolv.c
index cda4e31137..73e530a92c 100644
--- a/epan/oid_resolv.c
+++ b/epan/oid_resolv.c
@@ -35,9 +35,6 @@
static GHashTable *oid_table = NULL;
-/* this should be configurable - but where ? */
-static const gchar *oid_url_template = "http://www.alvestrand.no/objectid/%s.html";
-
void oid_resolv_init(void) {
oid_table = g_hash_table_new(g_str_hash, g_str_equal);
}
@@ -98,29 +95,3 @@ extern void add_oid_name(const guint8 *oid, gint oid_len, const gchar *name) {
extern void add_oid_str_name(const gchar *oid_str, const gchar *name) {
g_hash_table_insert(oid_table, (gpointer)g_strdup(oid_str), (gpointer)name);
}
-
-gboolean get_oid_url(field_info *finfo, gchar **ret_url)
-{
- const char *oid;
-
- if(finfo && (finfo->hfinfo->type == FT_OID) &&
- (oid_url_template != NULL) && (*oid_url_template != NULL)) {
- if(ret_url) {
- /* return the URL */
- oid = oid_to_str(tvb_get_ptr(finfo->ds_tvb, finfo->start, finfo->length),
- finfo->length);
-
- /* the URL will be freed */
- *ret_url = g_strdup_printf(oid_url_template, oid);
- return TRUE;
- } else {
- /* return TRUE if we are configured to return URLs */
-
- if((oid_url_template != NULL) && (*oid_url_template != NULL))
- return TRUE;
-
- }
- }
-
- return FALSE;
-}