Skip to content

Commit 41c0687

Browse files
Remove code that has become useless.
1 parent e8dc5a2 commit 41c0687

File tree

3 files changed

+1
-37
lines changed

3 files changed

+1
-37
lines changed

include/sot/core/macros.hh

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,4 @@
11
#ifndef __SOT_CORE_MACROS_HH__
22
#define __SOT_CORE_MACROS_HH__
33

4-
// ref https://www.fluentcpp.com/2019/08/30/how-to-disable-a-warning-in-cpp/
5-
#if defined(_MSC_VER)
6-
7-
#define SOT_CORE_DISABLE_WARNING_PUSH __pragma(warning(push))
8-
#define SOT_CORE_DISABLE_WARNING_POP __pragma(warning(pop))
9-
#define SOT_CORE_DISABLE_WARNING(warningNumber) \
10-
__pragma(warning(disable : warningNumber))
11-
#define SOT_CORE_DISABLE_WARNING_DEPRECATED SOT_CORE_DISABLE_WARNING(4996)
12-
#define SOT_CORE_DISABLE_WARNING_FALLTHROUGH
13-
14-
#elif defined(__GNUC__) || defined(__clang__)
15-
16-
#define SOT_CORE_DO_PRAGMA(X) _Pragma(#X)
17-
#define SOT_CORE_DISABLE_WARNING_PUSH SOT_CORE_DO_PRAGMA(GCC diagnostic push)
18-
#define SOT_CORE_DISABLE_WARNING_POP SOT_CORE_DO_PRAGMA(GCC diagnostic pop)
19-
#define SOT_CORE_DISABLE_WARNING(warningName) \
20-
SOT_CORE_DO_PRAGMA(GCC diagnostic ignored #warningName)
21-
#define SOT_CORE_DISABLE_WARNING_DEPRECATED \
22-
SOT_CORE_DISABLE_WARNING(-Wdeprecated - declarations)
23-
#define SOT_CORE_DISABLE_WARNING_FALLTHROUGH \
24-
SOT_CORE_DISABLE_WARNING(-Wimplicit - fallthrough)
25-
26-
#else
27-
28-
#define SOT_CORE_DISABLE_WARNING_PUSH
29-
#define SOT_CORE_DISABLE_WARNING_POP
30-
#define SOT_CORE_DISABLE_WARNING_DEPRECATED
31-
32-
#endif
33-
344
#endif

include/sot/core/task-abstract.hh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ class SOT_CORE_EXPORT TaskAbstract : public dynamicgraph::Entity {
5353
/* Use a derivative of this class to store computational memory. */
5454
class MemoryTaskAbstract {
5555
public:
56-
int timeLastChange;
57-
58-
public:
59-
MemoryTaskAbstract(void) : timeLastChange(0){};
56+
MemoryTaskAbstract(void) {};
6057
virtual ~MemoryTaskAbstract(void){};
6158

6259
public:

src/feature/feature-pose.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,12 @@
2929

3030
using namespace dynamicgraph::sot;
3131

32-
SOT_CORE_DISABLE_WARNING_PUSH
33-
SOT_CORE_DISABLE_WARNING_DEPRECATED
3432
typedef FeaturePose<R3xSO3Representation> FeaturePose_t;
3533
typedef FeaturePose<SE3Representation> FeaturePoseSE3_t;
3634
template <>
3735
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePose_t, "FeaturePose");
3836
template <>
3937
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePoseSE3_t, "FeaturePoseSE3");
40-
SOT_CORE_DISABLE_WARNING_POP
4138

4239
namespace dynamicgraph {
4340
namespace sot {

0 commit comments

Comments
 (0)