Skip to content

Commit d1a7c0f

Browse files
Remove agent-related console logs
1 parent 5bff14e commit d1a7c0f

File tree

4 files changed

+0
-15
lines changed

4 files changed

+0
-15
lines changed

src/agent.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const UPDATE_INTERVAL: Duration = Duration::from_millis(250);
5050
/// the UI thread.
5151
#[reactor(EmulationCoreAgent)]
5252
pub async fn emulation_core_agent(scope: ReactorScope<Command, DatapathUpdate>) {
53-
log!("Hello world!");
5453
let mut state = EmulatorCoreAgentState::new(scope);
5554
loop {
5655
let execution_delay = state.get_delay();
@@ -90,7 +89,6 @@ pub async fn emulation_core_agent(scope: ReactorScope<Command, DatapathUpdate>)
9089
if state.should_send_datapath_update() {
9190
match state.current_datapath.as_datapath_ref() {
9291
DatapathRef::MIPS(datapath) => {
93-
log!(format!("Updates: {:?}", state.updates));
9492
// Stage always updates
9593
send_update_mips!(
9694
state.scope,
@@ -531,7 +529,6 @@ impl EmulatorCoreAgentState {
531529
}
532530

533531
async fn add_message(&mut self, msg: String) {
534-
log!("Pushed message");
535532
self.messages.push(msg);
536533
self.scope
537534
.send(DatapathUpdate::System(SystemUpdate::UpdateMessages(

src/agent/datapath_reducer.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ impl Reducible for DatapathReducer {
6666
type Action = DatapathUpdate;
6767

6868
fn reduce(self: Rc<Self>, action: Self::Action) -> Rc<Self> {
69-
log!("Messages so far:");
70-
for item in &self.messages {
71-
log!(item);
72-
}
73-
7469
Rc::from(match action {
7570
DatapathUpdate::MIPS(update) => Self {
7671
current_architecture: MIPS,

src/bin/main.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ fn app(props: &AppProps) -> Html {
141141
use_callback(
142142
move |_, (text_model, editor_curr_line, memory_curr_instr, datapath_state)| {
143143
let text_model = text_model.clone();
144-
log!(format!(
145-
"Current arch: {:?}",
146-
datapath_state.current_architecture
147-
));
148144
// parses through the code to assemble the binary and retrieves programinfo for error marking and mouse hover
149145
let (program_info, assembled, labels) =
150146
parser(text_model.get_value(), datapath_state.current_architecture);
@@ -215,8 +211,6 @@ fn app(props: &AppProps) -> Html {
215211
)
216212
};
217213

218-
log!("Re-rendered!");
219-
220214
// This is where the code will get executed. If you execute further
221215
// than when the code ends, the program crashes. This is remedied via the
222216
// syscall instruction, which will halt the datapath. As you execute the

src/ui/visual_datapath/utils.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ pub fn visual_line_to_data(
194194
variable: &str,
195195
datapath_state: &UseReducerHandle<DatapathReducer>,
196196
) -> LineInformation {
197-
log!("Calling here");
198197
match datapath_state.current_architecture {
199198
AvailableDatapaths::MIPS => {
200199
match variable {

0 commit comments

Comments
 (0)