Skip to content

Commit 77eaaec

Browse files
authored
Merge pull request #1517 from o1-labs/dw/remove-unused-code
Node/graphql: remove unused structures
2 parents 51b7d40 + 27f19c1 commit 77eaaec

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

node/native/src/graphql/mod.rs

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -199,64 +199,6 @@ enum SyncStatus {
199199
CATCHUP,
200200
}
201201

202-
#[derive(Clone, Debug)]
203-
struct ProtocolState {
204-
consensus_state: ConsensusState,
205-
blockchain_state: BlockchainState,
206-
}
207-
208-
#[juniper::graphql_object(context = Context)]
209-
impl ProtocolState {
210-
fn consensus_state(&self) -> &ConsensusState {
211-
&self.consensus_state
212-
}
213-
214-
fn blockchain_state(&self) -> &BlockchainState {
215-
&self.blockchain_state
216-
}
217-
}
218-
219-
#[derive(Clone, Debug)]
220-
struct ConsensusState {
221-
block_height: i32,
222-
}
223-
224-
#[juniper::graphql_object(context = Context)]
225-
impl ConsensusState {
226-
fn block_height(&self) -> i32 {
227-
self.block_height
228-
}
229-
}
230-
231-
#[derive(Clone, Debug)]
232-
struct BlockchainState {
233-
snarked_ledger_hash: String,
234-
}
235-
236-
#[juniper::graphql_object(context = Context)]
237-
impl BlockchainState {
238-
fn snarked_ledger_hash(&self) -> &str {
239-
&self.snarked_ledger_hash
240-
}
241-
}
242-
243-
#[derive(Clone, Debug)]
244-
struct BestChain {
245-
state_hash: String,
246-
protocol_state: ProtocolState,
247-
}
248-
249-
#[juniper::graphql_object(context = Context)]
250-
impl BestChain {
251-
fn state_hash(&self) -> &str {
252-
&self.state_hash
253-
}
254-
255-
fn protocol_state(&self) -> &ProtocolState {
256-
&self.protocol_state
257-
}
258-
}
259-
260202
#[derive(Clone, Copy, Debug)]
261203
pub struct Query;
262204

0 commit comments

Comments
 (0)