Skip to content

Commit

Permalink
Deprecate RedisClient and remove unused header file (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft authored Oct 23, 2020
1 parent 165a679 commit 3ec30ef
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion common/dbinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stdexcept>

#include "dbconnector.h"
#include "redisclient.h"
#include "logger.h"

namespace swss
Expand Down
1 change: 0 additions & 1 deletion common/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "schema.h"
#include "select.h"
#include "dbconnector.h"
#include "redisclient.h"
#include "consumerstatetable.h"
#include "producerstatetable.h"

Expand Down
1 change: 0 additions & 1 deletion common/loglevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "schema.h"
#include "logger.h"
#include "dbconnector.h"
#include "redisclient.h"
#include "producerstatetable.h"

using namespace swss;
Expand Down
6 changes: 2 additions & 4 deletions common/redisclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ class RedisClient

private:
swss::DBConnector *m_db;
};

// TODO: mark above class: __attribute__ ((__deprecated__));
// After remove all the caller code
} __attribute__ ((__deprecated__));
// This class is deprecated. Please use DBConnector class instead.

}

Expand Down
1 change: 0 additions & 1 deletion tests/fdb_flush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "common/producertable.h"
#include "common/consumertable.h"
#include "common/redisapi.h"
#include "common/redisclient.h"

#include <inttypes.h>
#include <iostream>
Expand Down
1 change: 0 additions & 1 deletion tests/logger_ut.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "common/dbconnector.h"
#include "common/redisclient.h"
#include "common/producerstatetable.h"
#include "common/consumerstatetable.h"
#include "common/select.h"
Expand Down
1 change: 0 additions & 1 deletion tests/redis_state_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "common/table.h"
#include "common/producerstatetable.h"
#include "common/consumerstatetable.h"
#include "common/redisclient.h"

using namespace std;
using namespace swss;
Expand Down
1 change: 0 additions & 1 deletion tests/redis_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "common/selectableevent.h"
#include "common/selectabletimer.h"
#include "common/table.h"
#include "common/redisclient.h"
#include "common/dbinterface.h"
#include "common/sonicv2connector.h"

Expand Down

0 comments on commit 3ec30ef

Please sign in to comment.