mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 16:20:49 +00:00
Removed unused code on wasitests
This commit is contained in:
parent
7b41c2b843
commit
37afcd33df
@ -236,13 +236,6 @@ pub struct WasiOptions {
|
||||
pub dir: Vec<String>,
|
||||
}
|
||||
|
||||
impl WasiOptions {
|
||||
/// Constructs WasiOptions given a json string
|
||||
pub fn from_str(buffer: &str) -> Result<Self, String> {
|
||||
serde_json::from_str(buffer).map_err(|e| format!("Can't get options from bufer"))
|
||||
}
|
||||
}
|
||||
|
||||
/// Pulls args to the program out of a comment at the top of the file starting with "// WasiOptions:"
|
||||
fn extract_args_from_source_file(source_code: &str) -> Option<WasiOptions> {
|
||||
if source_code.starts_with("// WASI:") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user