Remove is_valid() for types

Not complete and not really necessary.
This commit is contained in:
Jonathan Müller 2017-03-27 21:38:56 +02:00
commit dc290415f1
3 changed files with 2 additions and 110 deletions

View file

@ -584,8 +584,8 @@ std::unique_ptr<cpp_type> detail::parse_type(const detail::parse_context& contex
const CXCursor& cur, const CXType& type)
{
auto result = parse_type_impl(context, cur, type);
DEBUG_ASSERT(result && is_valid(*result), detail::parse_error_handler{}, type, "invalid type");
return std::move(result);
DEBUG_ASSERT(result != nullptr, detail::parse_error_handler{}, type, "invalid type");
return result;
}
std::unique_ptr<cpp_type> detail::parse_raw_type(const detail::parse_context&,