Skip to content

Commit

Permalink
Remove agent-related console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksmckinley committed Apr 20, 2024
1 parent 5bff14e commit d1a7c0f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const UPDATE_INTERVAL: Duration = Duration::from_millis(250);
/// the UI thread.
#[reactor(EmulationCoreAgent)]
pub async fn emulation_core_agent(scope: ReactorScope<Command, DatapathUpdate>) {
log!("Hello world!");
let mut state = EmulatorCoreAgentState::new(scope);
loop {
let execution_delay = state.get_delay();
Expand Down Expand Up @@ -90,7 +89,6 @@ pub async fn emulation_core_agent(scope: ReactorScope<Command, DatapathUpdate>)
if state.should_send_datapath_update() {
match state.current_datapath.as_datapath_ref() {
DatapathRef::MIPS(datapath) => {
log!(format!("Updates: {:?}", state.updates));
// Stage always updates
send_update_mips!(
state.scope,
Expand Down Expand Up @@ -531,7 +529,6 @@ impl EmulatorCoreAgentState {
}

async fn add_message(&mut self, msg: String) {
log!("Pushed message");
self.messages.push(msg);
self.scope
.send(DatapathUpdate::System(SystemUpdate::UpdateMessages(
Expand Down
5 changes: 0 additions & 5 deletions src/agent/datapath_reducer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ impl Reducible for DatapathReducer {
type Action = DatapathUpdate;

fn reduce(self: Rc<Self>, action: Self::Action) -> Rc<Self> {
log!("Messages so far:");
for item in &self.messages {
log!(item);
}

Rc::from(match action {
DatapathUpdate::MIPS(update) => Self {
current_architecture: MIPS,
Expand Down
6 changes: 0 additions & 6 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ fn app(props: &AppProps) -> Html {
use_callback(
move |_, (text_model, editor_curr_line, memory_curr_instr, datapath_state)| {
let text_model = text_model.clone();
log!(format!(
"Current arch: {:?}",
datapath_state.current_architecture
));
// parses through the code to assemble the binary and retrieves programinfo for error marking and mouse hover
let (program_info, assembled, labels) =
parser(text_model.get_value(), datapath_state.current_architecture);
Expand Down Expand Up @@ -215,8 +211,6 @@ fn app(props: &AppProps) -> Html {
)
};

log!("Re-rendered!");

// This is where the code will get executed. If you execute further
// than when the code ends, the program crashes. This is remedied via the
// syscall instruction, which will halt the datapath. As you execute the
Expand Down
1 change: 0 additions & 1 deletion src/ui/visual_datapath/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ pub fn visual_line_to_data(
variable: &str,
datapath_state: &UseReducerHandle<DatapathReducer>,
) -> LineInformation {
log!("Calling here");
match datapath_state.current_architecture {
AvailableDatapaths::MIPS => {
match variable {
Expand Down

0 comments on commit d1a7c0f

Please sign in to comment.