Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unnecessary constants #7326

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions tooling/nargo/src/constants.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// Directories
/// The directory for the `nargo contract` command output
pub const CONTRACT_DIR: &str = "contract";
/// The directory to store serialized circuit proofs.
pub const PROOFS_DIR: &str = "proofs";
/// The directory to store Noir source files
pub const SRC_DIR: &str = "src";
/// The directory to store circuits' serialized ACIR representations.
Expand All @@ -17,7 +13,5 @@ pub const PROVER_INPUT_FILE: &str = "Prover";
pub const PKG_FILE: &str = "Nargo.toml";

// Extensions
/// The extension for files containing circuit proofs.
pub const PROOF_EXT: &str = "proof";
/// The extension for files containing proof witnesses.
pub const WITNESS_EXT: &str = "gz";
11 changes: 1 addition & 10 deletions tooling/nargo/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use fm::FileManager;
use noirc_driver::file_manager_with_stdlib;

use crate::{
constants::{CONTRACT_DIR, EXPORT_DIR, PROOFS_DIR, TARGET_DIR},
constants::{EXPORT_DIR, TARGET_DIR},
package::Package,
};

Expand All @@ -33,15 +33,6 @@ impl Workspace {
self.target_directory_path().join(name).with_extension("json")
}

pub fn contracts_directory_path(&self, package: &Package) -> PathBuf {
let name: String = package.name.clone().into();
self.root_dir.join(CONTRACT_DIR).join(name)
}

pub fn proofs_directory_path(&self) -> PathBuf {
self.root_dir.join(PROOFS_DIR)
}

pub fn target_directory_path(&self) -> PathBuf {
self.root_dir.join(TARGET_DIR)
}
Expand Down
Loading