implement some missing builtin variants
[cparser] / type_hash.c
index 78658bc..a931f7d 100644 (file)
@@ -121,14 +121,6 @@ static unsigned hash_typeof_type(const typeof_type_t *type)
        return result;
 }
 
-static unsigned hash_bitfield_type(const bitfield_type_t *type)
-{
-       unsigned result  = hash_ptr(type->base_type);
-       result          ^= 27172145;
-
-       return result;
-}
-
 static unsigned hash_type(const type_t *type)
 {
        unsigned hash = 0;
@@ -172,9 +164,6 @@ static unsigned hash_type(const type_t *type)
        case TYPE_TYPEOF:
                hash = hash_typeof_type(&type->typeoft);
                break;
-       case TYPE_BITFIELD:
-               hash = hash_bitfield_type(&type->bitfield);
-               break;
        }
 
        unsigned some_prime = 99991;
@@ -297,15 +286,6 @@ static bool typeof_types_equal(const typeof_type_t *type1,
        return true;
 }
 
-static bool bitfield_types_equal(const bitfield_type_t *type1,
-                                 const bitfield_type_t *type2)
-{
-       if (type1->base_type != type2->base_type)
-               return false;
-       /* TODO: compare size expression */
-       return false;
-}
-
 static bool types_equal(const type_t *type1, const type_t *type2)
 {
        if (type1 == type2)
@@ -344,8 +324,6 @@ static bool types_equal(const type_t *type1, const type_t *type2)
                return typeof_types_equal(&type1->typeoft, &type2->typeoft);
        case TYPE_TYPEDEF:
                return typedef_types_equal(&type1->typedeft, &type2->typedeft);
-       case TYPE_BITFIELD:
-               return bitfield_types_equal(&type1->bitfield, &type2->bitfield);
        }
 
        abort();