Skip to content

Commit

Permalink
Remove unused {c,java}_qualifierst::count
Browse files Browse the repository at this point in the history
These are never used (and their implementation was awkwardly summing up
Booleans, yielding conversion warnings).
  • Loading branch information
tautschnig committed Feb 7, 2025
1 parent 66004dc commit 0e1bdf5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions jbmc/src/java_bytecode/java_qualifiers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ std::unique_ptr<c_qualifierst> java_qualifierst::clone() const
return std::move(other);
}

std::size_t java_qualifierst::count() const
{
return c_qualifierst::count() + annotations.size();
}

void java_qualifierst::clear()
{
c_qualifierst::clear();
Expand Down
1 change: 0 additions & 1 deletion jbmc/src/java_bytecode/java_qualifiers.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class java_qualifierst : public c_qualifierst
{
return annotations;
}
std::size_t count() const override;

void clear() override;

Expand Down
6 changes: 0 additions & 6 deletions src/ansi-c/c_qualifiers.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ class c_qualifierst
is_noreturn |= other.is_noreturn;
return *this;
}

virtual std::size_t count() const
{
return is_constant + is_volatile + is_restricted + is_atomic + is_ptr32 +
is_ptr64 + is_nodiscard + is_noreturn;
}
};

#endif // CPROVER_ANSI_C_C_QUALIFIERS_H

0 comments on commit 0e1bdf5

Please sign in to comment.