Skip to content

Commit 2a0b9c9

Browse files
committed
Remove unused session have_subaccounts method
1 parent e974ee1 commit 2a0b9c9

File tree

7 files changed

+0
-17
lines changed

7 files changed

+0
-17
lines changed

src/ga_rust.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ namespace sdk {
541541

542542
amount ga_rust::get_min_fee_rate() const { throw std::runtime_error("get_min_fee_rate not implemented"); }
543543
amount ga_rust::get_default_fee_rate() const { throw std::runtime_error("get_default_fee_rate not implemented"); }
544-
bool ga_rust::have_subaccounts() const { throw std::runtime_error("have_subaccounts not implemented"); }
545544
uint32_t ga_rust::get_block_height() const { throw std::runtime_error("get_block_height not implemented"); }
546545
amount ga_rust::get_dust_threshold() const { throw std::runtime_error("get_dust_threshold not implemented"); }
547546
nlohmann::json ga_rust::get_spending_limits() const

src/ga_rust.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ namespace sdk {
181181

182182
amount get_min_fee_rate() const;
183183
amount get_default_fee_rate() const;
184-
bool have_subaccounts() const;
185184
uint32_t get_block_height() const;
186185
amount get_dust_threshold() const;
187186
nlohmann::json get_spending_limits() const;

src/ga_session.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,13 +1397,6 @@ namespace sdk {
13971397
return m_block_height;
13981398
}
13991399

1400-
bool ga_session::have_subaccounts() const
1401-
{
1402-
locker_t locker(m_mutex);
1403-
GDK_RUNTIME_ASSERT(!m_subaccounts.empty());
1404-
return m_subaccounts.size() != 1u;
1405-
}
1406-
14071400
nlohmann::json ga_session::get_spending_limits() const
14081401
{
14091402
locker_t locker(m_mutex);

src/ga_session.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ namespace sdk {
191191
amount get_min_fee_rate() const;
192192
amount get_default_fee_rate() const;
193193
uint32_t get_block_height() const;
194-
bool have_subaccounts() const;
195194
amount get_dust_threshold() const;
196195
nlohmann::json get_spending_limits() const;
197196
bool is_spending_limits_decrease(const nlohmann::json& details);

src/session.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -959,11 +959,6 @@ namespace sdk {
959959
return p->get_default_fee_rate(); // Note no exception_wrapper
960960
}
961961

962-
bool session::have_subaccounts() const
963-
{
964-
auto p = get_nonnull_impl();
965-
return p->have_subaccounts(); // Note no exception_wrapper
966-
}
967962
uint32_t session::get_block_height() const
968963
{
969964
auto p = get_nonnull_impl();

src/session.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ namespace sdk {
169169

170170
amount get_min_fee_rate() const;
171171
amount get_default_fee_rate() const;
172-
bool have_subaccounts() const;
173172
uint32_t get_block_height() const;
174173
amount get_dust_threshold() const;
175174
nlohmann::json get_spending_limits() const;

src/session_common.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ namespace sdk {
184184

185185
virtual amount get_min_fee_rate() const = 0;
186186
virtual amount get_default_fee_rate() const = 0;
187-
virtual bool have_subaccounts() const = 0;
188187
virtual uint32_t get_block_height() const = 0;
189188
virtual amount get_dust_threshold() const = 0;
190189
virtual nlohmann::json get_spending_limits() const = 0;

0 commit comments

Comments
 (0)