Skip to content

Commit 639de41

Browse files
committed
Remove unused contracts-related functions from ansi_c_declarationt
The parser communicates contracts by embedding them in the type, and ans_c_convert_typet takes care of this.
1 parent 1a4c66e commit 639de41

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/ansi-c/ansi_c_declaration.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -243,21 +243,6 @@ class ansi_c_declarationt:public exprt
243243
assert(!declarators().empty());
244244
declarators().back().value().swap(value);
245245
}
246-
247-
const exprt &spec_assigns() const
248-
{
249-
return static_cast<const exprt &>(find(ID_C_spec_assigns));
250-
}
251-
252-
const exprt &spec_requires() const
253-
{
254-
return static_cast<const exprt &>(find(ID_C_spec_requires));
255-
}
256-
257-
const exprt &spec_ensures() const
258-
{
259-
return static_cast<const exprt &>(find(ID_C_spec_ensures));
260-
}
261246
};
262247

263248
inline ansi_c_declarationt &to_ansi_c_declaration(exprt &expr)

0 commit comments

Comments
 (0)