Skip to content

Commit 046a8c3

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 from irep.h (and makes obvious where the include actually is needed). Also clean up an outdated NOLINT.
1 parent f4dedec commit 046a8c3

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

src/util/expr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Author: Daniel Kroening, [email protected]
99
#ifndef CPROVER_UTIL_EXPR_H
1010
#define CPROVER_UTIL_EXPR_H
1111

12+
#include "deprecate.h"
1213
#include "type.h"
1314
#include "validate_expressions.h"
1415
#include "validate_types.h"

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

src/util/message.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Author: Daniel Kroening, [email protected]
1515
#include <sstream>
1616
#include <string>
1717

18+
#include "deprecate.h"
1819
#include "invariant.h"
1920
#include "json.h"
2021
#include "source_location.h"

src/util/type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Author: Daniel Kroening, [email protected]
1515

1616
class namespacet;
1717

18+
#include "deprecate.h"
1819
#include "source_location.h"
1920
#include "validate_types.h"
2021
#include "validation_mode.h"

0 commit comments

Comments
 (0)