Skip to content

Commit caf5b94

Browse files
authored
Merge pull request #7364 from martin-cs/tidy/vsd-internals-1
Remove an unused constructor from the interface of abstract_objectt
2 parents 26f400b + 6c4ce1a commit caf5b94

31 files changed

+5
-165
lines changed

src/analyses/variable-sensitivity/abstract_aggregate_object.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ class abstract_aggregate_objectt : public abstract_objectt,
3030
public abstract_aggregate_tag
3131
{
3232
public:
33-
explicit abstract_aggregate_objectt(const typet &type)
34-
: abstract_objectt(type)
35-
{
36-
PRECONDITION(type.id() == aggregate_traitst::TYPE_ID());
37-
}
38-
3933
abstract_aggregate_objectt(const typet &type, bool tp, bool bttm)
4034
: abstract_objectt(type, tp, bttm)
4135
{

src/analyses/variable-sensitivity/abstract_object.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616

1717
#include "abstract_object.h"
1818

19-
abstract_objectt::abstract_objectt(const typet &type)
20-
: t(type), bottom(false), top(true)
21-
{
22-
}
23-
2419
abstract_objectt::abstract_objectt(const typet &type, bool top, bool bottom)
2520
: t(type), bottom(bottom), top(top)
2621
{
@@ -35,15 +30,6 @@ abstract_objectt::abstract_objectt(
3530
{
3631
}
3732

38-
abstract_objectt::abstract_objectt(
39-
const typet &type,
40-
const exprt &expr,
41-
const abstract_environmentt &environment,
42-
const namespacet &ns)
43-
: t(type), bottom(false), top(true)
44-
{
45-
}
46-
4733
const typet &abstract_objectt::type() const
4834
{
4935
return t;

src/analyses/variable-sensitivity/abstract_object.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ using abstract_object_visitedt = std::set<abstract_object_pointert>;
7272
class abstract_objectt : public std::enable_shared_from_this<abstract_objectt>
7373
{
7474
public:
75-
/// \param type: the type the abstract_object is representing
76-
explicit abstract_objectt(const typet &type);
77-
7875
/// Start the abstract object at either top or bottom or neither
7976
/// Asserts if both top and bottom are true
8077
///
@@ -95,19 +92,6 @@ class abstract_objectt : public std::enable_shared_from_this<abstract_objectt>
9592
const abstract_environmentt &environment,
9693
const namespacet &ns);
9794

98-
/// Ctor for building object of types that differ from the types of input
99-
/// expressions
100-
///
101-
/// \param type explicitly declared type the resulting object should have
102-
/// \param expr expression used to build the object
103-
/// \param environment abstract environment to evaluate the expression
104-
/// \param ns namespace to uncover names inside the expression
105-
abstract_objectt(
106-
const typet &type,
107-
const exprt &expr,
108-
const abstract_environmentt &environment,
109-
const namespacet &ns);
110-
11195
virtual ~abstract_objectt()
11296
{
11397
}

src/analyses/variable-sensitivity/abstract_pointer_object.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313

1414
#include "abstract_object_statistics.h"
1515

16-
abstract_pointer_objectt::abstract_pointer_objectt(const typet &t)
17-
: abstract_objectt(t)
18-
{
19-
PRECONDITION(t.id() == ID_pointer);
20-
}
21-
2216
abstract_pointer_objectt::abstract_pointer_objectt(
2317
const typet &type,
2418
bool top,

src/analyses/variable-sensitivity/abstract_pointer_object.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ class abstract_pointer_objectt : public abstract_objectt,
2121
public abstract_pointer_tag
2222
{
2323
public:
24-
/// \param type: the type the abstract_object is representing
25-
explicit abstract_pointer_objectt(const typet &type);
26-
2724
/// Start the abstract object at either top or bottom or neither
2825
/// Asserts if both top and bottom are true
2926
///

src/analyses/variable-sensitivity/abstract_value_object.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,6 @@ class abstract_value_objectt : public abstract_objectt,
240240
public abstract_value_tag
241241
{
242242
public:
243-
explicit abstract_value_objectt(const typet &type) : abstract_objectt(type)
244-
{
245-
}
246-
247243
abstract_value_objectt(const typet &type, bool tp, bool bttm)
248244
: abstract_objectt(type, tp, bttm)
249245
{

src/analyses/variable-sensitivity/constant_abstract_value.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ make_constant_index_range(const exprt &val)
3737
return util_make_unique<constant_index_ranget>(val);
3838
}
3939

40-
constant_abstract_valuet::constant_abstract_valuet(const typet &t)
41-
: abstract_value_objectt(t), value()
42-
{
43-
}
44-
4540
constant_abstract_valuet::constant_abstract_valuet(const exprt &e)
4641
: abstract_value_objectt(e.type(), false, false), value(e)
4742
{

src/analyses/variable-sensitivity/constant_abstract_value.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
class constant_abstract_valuet : public abstract_value_objectt
2020
{
2121
public:
22-
explicit constant_abstract_valuet(const typet &t);
2322
explicit constant_abstract_valuet(const exprt &t);
2423
constant_abstract_valuet(const typet &t, bool tp, bool bttm);
2524
constant_abstract_valuet(

src/analyses/variable-sensitivity/constant_pointer_abstract_object.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@
2020

2121
#include <ostream>
2222

23-
constant_pointer_abstract_objectt::constant_pointer_abstract_objectt(
24-
const typet &type)
25-
: abstract_pointer_objectt(type)
26-
{
27-
PRECONDITION(type.id() == ID_pointer);
28-
}
29-
3023
constant_pointer_abstract_objectt::constant_pointer_abstract_objectt(
3124
const typet &type,
3225
bool top,

src/analyses/variable-sensitivity/constant_pointer_abstract_object.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ class constant_pointer_abstract_objectt : public abstract_pointer_objectt
2323
constant_pointer_abstract_pointert;
2424

2525
public:
26-
/// \param type: the type the abstract_object is representing
27-
explicit constant_pointer_abstract_objectt(const typet &type);
28-
2926
/// \param type: the type the abstract_object is representing
3027
/// \param top: is the abstract_object starting as top
3128
/// \param bottom: is the abstract_object starting as bottom

0 commit comments

Comments
 (0)