Skip to content

Commit a65224b

Browse files
committed
chore: remove unused imports
1 parent 7ab39e5 commit a65224b

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

clarity/src/vm/analysis/type_checker/contexts.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ use stacks_common::types::StacksEpochId;
2121

2222
use crate::vm::analysis::errors::{CheckError, CheckErrors, CheckResult};
2323
use crate::vm::types::signatures::CallableSubtype;
24-
use crate::vm::types::{
25-
ListTypeData, SequenceSubtype, TraitIdentifier, TupleTypeSignature, TypeSignature,
26-
};
24+
use crate::vm::types::{TraitIdentifier, TypeSignature};
2725
use crate::vm::{ClarityName, ClarityVersion, SymbolicExpression, MAX_CONTEXT_DEPTH};
2826

2927
#[derive(Debug, Clone, PartialEq)]

clarity/src/vm/contracts.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
use stacks_common::types::StacksEpochId;
1818

1919
use super::analysis::ContractAnalysis;
20-
use super::CallStack;
2120
use crate::vm::ast::ContractAST;
22-
2321
#[cfg(feature = "clarity-wasm")]
2422
use crate::vm::clarity_wasm::initialize_contract;
2523
use crate::vm::contexts::{ContractContext, GlobalContext};

clarity/src/vm/errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17+
use std::string::FromUtf8Error;
1718
use std::{error, fmt};
1819

1920
#[cfg(feature = "canonical")]

clarity/src/vm/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ pub mod clarity;
5858

5959
use std::collections::BTreeMap;
6060

61-
use serde_json;
6261
use stacks_common::types::StacksEpochId;
6362

6463
use self::analysis::ContractAnalysis;

clarity/src/vm/tooling/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
use std::collections::{BTreeMap, HashMap, HashSet};
2+
3+
use stacks_common::consts::CHAIN_ID_TESTNET;
14
use stacks_common::types::StacksEpochId;
25

36
use super::analysis::ContractAnalysis;
7+
use super::contexts::GlobalContext;
8+
use super::docs::contracts::{make_func_ref, ContractRef, ErrorCode, DOCS_GENERATION_EPOCH};
49
use super::types::TypeSignature;
5-
use super::ClarityVersion;
10+
use super::{eval_all, ClarityVersion, ContractContext, Error as VmError, Value};
611
use crate::vm::analysis::{run_analysis, CheckResult};
712
use crate::vm::ast::{build_ast_with_rules, ASTRules};
813
use crate::vm::costs::LimitedCostTracker;

stacks-common/src/types/chainstate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use crate::consts::{FIRST_BURNCHAIN_CONSENSUS_HASH, FIRST_STACKS_BLOCK_HASH};
2727
use crate::deps_common::bitcoin::util::hash::Sha256dHash;
2828
use crate::util::hash::{Hash160, Sha512Trunc256Sum, HASH160_ENCODED_SIZE};
2929
use crate::util::secp256k1::{MessageSignature, Secp256k1PrivateKey, Secp256k1PublicKey};
30-
use crate::util::vrf::{VRFProof, VRF_PROOF_ENCODED_SIZE};
3130

3231
pub type StacksPublicKey = Secp256k1PublicKey;
3332
pub type StacksPrivateKey = Secp256k1PrivateKey;

stacks-common/src/util/secp256k1/secp256k1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use ::secp256k1::{
2424
constants as LibSecp256k1Constants, Error as LibSecp256k1Error, Message as LibSecp256k1Message,
2525
PublicKey as LibSecp256k1PublicKey, Secp256k1, SecretKey as LibSecp256k1PrivateKey,
2626
};
27-
use rand::{thread_rng, RngCore};
27+
use rand::RngCore;
2828
use serde::de::{Deserialize, Error as de_Error};
2929
use serde::Serialize;
3030

0 commit comments

Comments
 (0)