The function re_canonicalize was added in commit:
286cadf8 Bug 24430 - Fold away const for array types
but later rendered obsolete by commit:
5d6af8d5 Delay canonicalization for array and qualified types
This commit removes the function and its associated declarations.
* include/abg-fwd.h (re_canonicalize): Remove declaration of
obsolete function.
* include/abg-ir.h (class {decl_base, type_base}): Remove
re_canonicalize friend declarations from these classes.
* src/abg-ir.cc (re_canonicalize): Remove obsolete function.
Signed-off-by: Giuliano Procida <gprocida@google.com>
type_base_sptr
canonicalize(type_base_sptr);
-type_base_sptr
-re_canonicalize(type_base_sptr);
-
type_base*
type_has_non_canonicalized_subtype(type_base_sptr t);
friend type_base_sptr
canonicalize(type_base_sptr);
- friend type_base_sptr
- re_canonicalize(type_base_sptr);
-
friend bool
equals(const decl_base&, const decl_base&, change_kind*);
friend type_base_sptr canonicalize(type_base_sptr);
- friend type_base_sptr re_canonicalize(type_base_sptr);
-
type_base_sptr
get_canonical_type() const;
return canonical;
}
-/// Re-compute the canonical type of a type which already has one.
-///
-/// This does what @ref canonicalize does, but clears out the
-/// previously computed canonical type first.
-///
-/// @param t the type to compute the canonical type for.
-///
-/// @return the newly computed canonical type.
-type_base_sptr
-re_canonicalize(type_base_sptr t)
-{
- t->priv_->canonical_type.reset();
- t->priv_->naked_canonical_type = 0;
- return canonicalize(t);
-}
-
/// The constructor of @ref type_base.
///
/// @param s the size of the type, in bits.