Skip to content

Commit be205aa

Browse files
committed
Remove deprecated irept::get_unsigned_int
It has been deprecated since 06/2018 and has no users. This enables removing the deprecate.h include. Also clean up an outdated NOLINT.
1 parent f4dedec commit be205aa

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/util/irep.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ int irept::get_int(const irep_namet &name) const
109109
return unsafe_string2int(get_string(name));
110110
}
111111

112-
unsigned int irept::get_unsigned_int(const irep_namet &name) const
113-
{
114-
return unsafe_string2unsigned(get_string(name));
115-
}
116-
117112
std::size_t irept::get_size_t(const irep_namet &name) const
118113
{
119114
return unsafe_string2size_t(get_string(name));

src/util/irep.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Author: Daniel Kroening, [email protected]
1313
#include <string>
1414
#include <vector>
1515

16-
#include "deprecate.h"
1716
#include "invariant.h"
1817
#include "irep_ids.h"
1918

@@ -208,7 +207,6 @@ class sharing_treet
208207
{
209208
if(data!=&empty_d)
210209
{
211-
// NOLINTNEXTLINE(build/deprecated)
212210
PRECONDITION(data->ref_count != 0);
213211
data->ref_count++;
214212
#ifdef IREP_DEBUG
@@ -433,9 +431,6 @@ class irept
433431
const irep_idt &get(const irep_namet &name) const;
434432
bool get_bool(const irep_namet &name) const;
435433
signed int get_int(const irep_namet &name) const;
436-
/// \deprecated use get_size_t instead
437-
DEPRECATED("Use get_size_t instead")
438-
unsigned int get_unsigned_int(const irep_namet &name) const;
439434
std::size_t get_size_t(const irep_namet &name) const;
440435
long long get_long_long(const irep_namet &name) const;
441436

0 commit comments

Comments
 (0)