Skip to content

Commit

Permalink
Remove SessionHandle.{h,cpp} and replace includes with Session.h (#26549
Browse files Browse the repository at this point in the history
)

* Remove SessionHandle.{h,cpp} and replace includes with Session

* Restyled by clang-format

---------

Co-authored-by: Andrei Litvin <andreilitvin@google.com>
Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
3 people committed May 16, 2023
1 parent df615a6 commit a4ebc80
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 48 deletions.
1 change: 0 additions & 1 deletion src/app/InteractionModelTimeout.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <system/SystemClock.h>
#include <transport/Session.h>
#include <transport/SessionHandle.h>

namespace chip {
namespace app {
Expand Down
2 changes: 1 addition & 1 deletion src/app/OperationalSessionSetupPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <app/CASESessionManager.h>
#include <app/OperationalSessionSetup.h>
#include <lib/support/Pool.h>
#include <transport/SessionHandle.h>
#include <transport/Session.h>

namespace chip {

Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRCallbackBridgeBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <app/data-model/NullObject.h>
#include <messaging/ExchangeMgr.h>
#include <platform/CHIPDeviceLayer.h>
#include <transport/SessionHandle.h>
#include <transport/Session.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDeviceConnectionBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <controller/CHIPDeviceController.h>
#include <lib/core/ReferenceCounted.h>
#include <messaging/ExchangeMgr.h>
#include <transport/SessionHandle.h>
#include <transport/Session.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#pragma once

#include <system/SystemPacketBuffer.h>
#include <transport/SessionHandle.h>
#include <transport/Session.h>
#include <transport/raw/MessageHeader.h>
#include <transport/raw/PeerAddress.h>

Expand Down
2 changes: 0 additions & 2 deletions src/transport/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ static_library("transport") {
"Session.cpp",
"Session.h",
"SessionDelegate.h",
"SessionHandle.cpp",
"SessionHandle.h",
"SessionHolder.cpp",
"SessionHolder.h",
"SessionManager.cpp",
Expand Down
2 changes: 1 addition & 1 deletion src/transport/MessageCounterManagerInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#pragma once

#include <transport/SecureSession.h>
#include <transport/SessionHandle.h>
#include <transport/Session.h>

namespace chip {
namespace Transport {
Expand Down
18 changes: 0 additions & 18 deletions src/transport/SessionHandle.cpp

This file was deleted.

20 changes: 0 additions & 20 deletions src/transport/SessionHandle.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/transport/SessionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
#include <transport/GroupSession.h>
#include <transport/MessageCounterManagerInterface.h>
#include <transport/SecureSessionTable.h>
#include <transport/Session.h>
#include <transport/SessionDelegate.h>
#include <transport/SessionHandle.h>
#include <transport/SessionHolder.h>
#include <transport/SessionMessageDelegate.h>
#include <transport/TransportMgr.h>
Expand Down
2 changes: 1 addition & 1 deletion src/transport/SessionMessageDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include <transport/SessionHandle.h>
#include <transport/Session.h>
#include <transport/raw/MessageHeader.h>

namespace chip {
Expand Down

0 comments on commit a4ebc80

Please sign in to comment.