Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused {c,java}_qualifierst::count #8583

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading