Skip to content

Commit 16ed35a

Browse files
authored
Merge pull request #5565 from tautschnig/remove-deprecated-unwindset
Remove deprecated variant of parse_unwindset
2 parents aa069d3 + 4961f2d commit 16ed35a

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

src/goto-instrument/unwindset.cpp

+13-11
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,16 @@ void unwindsett::parse_unwindset_one_loop(std::string val)
5454
}
5555
}
5656

57-
void unwindsett::parse_unwindset(const std::string &unwindset)
58-
{
59-
std::vector<std::string> unwindset_elements =
60-
split_string(unwindset, ',', true, true);
61-
62-
for(auto &element : unwindset_elements)
63-
parse_unwindset_one_loop(element);
64-
}
65-
6657
void unwindsett::parse_unwindset(const std::list<std::string> &unwindset)
6758
{
6859
for(auto &element : unwindset)
69-
parse_unwindset(element);
60+
{
61+
std::vector<std::string> unwindset_elements =
62+
split_string(element, ',', true, true);
63+
64+
for(auto &element : unwindset_elements)
65+
parse_unwindset_one_loop(element);
66+
}
7067
}
7168

7269
optionalt<unsigned>
@@ -104,5 +101,10 @@ void unwindsett::parse_unwindset_file(const std::string &file_name)
104101

105102
std::stringstream buffer;
106103
buffer << file.rdbuf();
107-
parse_unwindset(buffer.str());
104+
105+
std::vector<std::string> unwindset_elements =
106+
split_string(buffer.str(), ',', true, true);
107+
108+
for(auto &element : unwindset_elements)
109+
parse_unwindset_one_loop(element);
108110
}

src/goto-instrument/unwindset.h

-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Author: Daniel Kroening, [email protected]
1616
#include <map>
1717
#include <string>
1818

19-
#include <util/deprecate.h>
2019
#include <util/irep.h>
2120
#include <util/optional.h>
2221

@@ -32,10 +31,6 @@ class unwindsett
3231
// global limit for all loops
3332
void parse_unwind(const std::string &unwind);
3433

35-
// limit for instances of a loop
36-
DEPRECATED(SINCE(2019, 11, 15, "use parse_unwindset(list) instead"))
37-
void parse_unwindset(const std::string &unwindset);
38-
3934
// limit for instances of a loop
4035
void parse_unwindset(const std::list<std::string> &unwindset);
4136

0 commit comments

Comments
 (0)