mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Kernel: Remove a now unused enum and variable regarding a session's status.
This commit is contained in:
		@@ -30,7 +30,6 @@ ResultVal<SharedPtr<ClientSession>> ClientSession::Create(std::string name) {
 | 
			
		||||
 | 
			
		||||
    client_session->name = std::move(name);
 | 
			
		||||
    client_session->parent = nullptr;
 | 
			
		||||
    client_session->session_status = SessionStatus::Open;
 | 
			
		||||
    return MakeResult<SharedPtr<ClientSession>>(std::move(client_session));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -16,12 +16,6 @@ namespace Kernel {
 | 
			
		||||
class ServerSession;
 | 
			
		||||
class Session;
 | 
			
		||||
 | 
			
		||||
enum class SessionStatus {
 | 
			
		||||
    Open = 1,
 | 
			
		||||
    ClosedByClient = 2,
 | 
			
		||||
    ClosedBYServer = 3,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class ClientSession final : public Object {
 | 
			
		||||
public:
 | 
			
		||||
    friend class ServerSession;
 | 
			
		||||
@@ -49,7 +43,6 @@ public:
 | 
			
		||||
 | 
			
		||||
    /// The parent session, which links to the server endpoint.
 | 
			
		||||
    std::shared_ptr<Session> parent;
 | 
			
		||||
    SessionStatus session_status;  ///< The session's current status.
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    ClientSession();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user