Skip to content

Commit dc3a655

Browse files
author
Daniel Kroening
committed
cleanup dead code
1 parent 89fa5e6 commit dc3a655

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

src/ansi-c/c_typecheck_base.h

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -71,45 +71,6 @@ class c_typecheck_baset:
7171
// service functions
7272
//
7373

74-
// initializers
75-
struct init_statet
76-
{
77-
protected:
78-
const exprt array;
79-
size_t pos;
80-
81-
public:
82-
explicit init_statet(const exprt &_array):array(_array), pos(0)
83-
{
84-
}
85-
86-
size_t remaining() const
87-
{
88-
return array.operands().size()-pos;
89-
}
90-
91-
bool has_next() const
92-
{
93-
return pos<array.operands().size();
94-
}
95-
96-
init_statet &operator ++(int x)
97-
{
98-
pos++;
99-
return *this;
100-
}
101-
102-
const exprt &operator *() const
103-
{
104-
return array.operands()[pos];
105-
}
106-
107-
const exprt *operator ->() const
108-
{
109-
return &(array.operands()[pos]);
110-
}
111-
};
112-
11374
virtual void do_initializer(
11475
exprt &initializer,
11576
const typet &type,

0 commit comments

Comments
 (0)