Skip to content

Commit

Permalink
Remove unnecessary session forward declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Mar 24, 2024
1 parent b14c1a7 commit 13af839
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_address_in_31402
: public protocol, protected tracker<protocol_address_in_31402>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_address_out_31402
: public protocol, protected tracker<protocol_address_out_31402>
{
Expand Down
3 changes: 1 addition & 2 deletions include/bitcoin/network/protocols/protocol_alert_31402.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_alert_31402
: public protocol, protected tracker<protocol_alert_31402>
{
Expand Down
3 changes: 1 addition & 2 deletions include/bitcoin/network/protocols/protocol_ping_31402.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_ping_31402
: public protocol, protected tracker<protocol_ping_31402>
{
Expand Down
3 changes: 1 addition & 2 deletions include/bitcoin/network/protocols/protocol_ping_60001.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol_ping_31402.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_ping_60001
: public protocol_ping_31402, protected tracker<protocol_ping_60001>
{
Expand Down
3 changes: 1 addition & 2 deletions include/bitcoin/network/protocols/protocol_reject_70002.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_reject_70002
: public protocol, protected tracker<protocol_reject_70002>
{
Expand Down
4 changes: 1 addition & 3 deletions include/bitcoin/network/protocols/protocol_seed_31402.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_seed_31402
: public protocol, protected tracker<protocol_seed_31402>
{
Expand Down
3 changes: 1 addition & 2 deletions include/bitcoin/network/protocols/protocol_version_31402.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_version_31402
: public protocol, protected tracker<protocol_version_31402>
{
Expand Down
3 changes: 1 addition & 2 deletions include/bitcoin/network/protocols/protocol_version_70001.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol_version_31402.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_version_70001
: public protocol_version_31402, protected tracker<protocol_version_70001>
{
Expand Down
3 changes: 1 addition & 2 deletions include/bitcoin/network/protocols/protocol_version_70002.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
#include <bitcoin/network/messages/messages.hpp>
#include <bitcoin/network/net/net.hpp>
#include <bitcoin/network/protocols/protocol_version_70001.hpp>
#include <bitcoin/network/sessions/sessions.hpp>

namespace libbitcoin {
namespace network {

class session;

class BCT_API protocol_version_70002
: public protocol_version_70001, protected tracker<protocol_version_70002>
{
Expand Down

0 comments on commit 13af839

Please sign in to comment.