summaryrefslogtreecommitdiff
path: root/lib/libdtrace/common/dt_parser.c
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2012-07-18 09:16:47 +0000
committerMartin Matuska <mm@FreeBSD.org>2012-07-18 09:16:47 +0000
commit77225241cd47b9d06c05bd568fc057328c0c65e5 (patch)
tree7b21d952f88eed0f80743c1b974b35495a428e72 /lib/libdtrace/common/dt_parser.c
parent5bb19a17c049cd92ccbd811a6bd0daf69ac899c1 (diff)
parent93a00b0821525e25814cd720fafd04d600811c28 (diff)
Notes
Diffstat (limited to 'lib/libdtrace/common/dt_parser.c')
-rw-r--r--lib/libdtrace/common/dt_parser.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/libdtrace/common/dt_parser.c b/lib/libdtrace/common/dt_parser.c
index 05715894a7df..6ad30a9ac52a 100644
--- a/lib/libdtrace/common/dt_parser.c
+++ b/lib/libdtrace/common/dt_parser.c
@@ -21,7 +21,6 @@
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2011, Joyent Inc. All rights reserved.
*/
/*
@@ -720,19 +719,12 @@ dt_node_type_name(const dt_node_t *dnp, char *buf, size_t len)
size_t
dt_node_type_size(const dt_node_t *dnp)
{
- ctf_id_t base;
-
if (dnp->dn_kind == DT_NODE_STRING)
return (strlen(dnp->dn_string) + 1);
if (dt_node_is_dynamic(dnp) && dnp->dn_ident != NULL)
return (dt_ident_size(dnp->dn_ident));
- base = ctf_type_resolve(dnp->dn_ctfp, dnp->dn_type);
-
- if (ctf_type_kind(dnp->dn_ctfp, base) == CTF_K_FORWARD)
- return (0);
-
return (ctf_type_size(dnp->dn_ctfp, dnp->dn_type));
}