Skip to content

Commit 001af9b

Browse files
committed
Make template_generator::operator() non-virtual
The API is different across the various template generators and the method is always called directly on the given template generator type, i.e. in a non-virtual way. Therefore, there is no need to implement this method as virtual.
1 parent 85f075d commit 001af9b

4 files changed

+3
-12
lines changed

src/domains/template_generator_base.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@ class template_generator_baset:public messaget
4646
{
4747
}
4848

49-
virtual void operator()(
50-
unsigned _domain_number,
51-
const local_SSAt &SSA,
52-
bool forward=true)
53-
{
54-
domain_number=_domain_number;
55-
assert(false);
56-
}
57-
5849
virtual var_sett all_vars();
5950

6051
inline domaint *domain()

src/domains/template_generator_callingcontext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class template_generator_callingcontextt:public template_generator_baset
2727
{
2828
}
2929

30-
virtual void operator()(
30+
void operator()(
3131
unsigned _domain_number,
3232
const local_SSAt &SSA,
3333
local_SSAt::nodest::const_iterator n_it,

src/domains/template_generator_ranking.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class template_generator_rankingt:public template_generator_baset
2828
{
2929
}
3030

31-
virtual void operator()(
31+
void operator()(
3232
unsigned _domain_number,
3333
const local_SSAt &SSA,
3434
bool forward=true);

src/domains/template_generator_summary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class template_generator_summaryt:public template_generator_baset
2828
{
2929
}
3030

31-
virtual void operator()(
31+
void operator()(
3232
unsigned _domain_number,
3333
const local_SSAt &SSA,
3434
bool forward=true);

0 commit comments

Comments
 (0)