Skip to content

Commit 5002336

Browse files
authored
Delete evaluate_input_events (#2906)
1 parent 2ec534a commit 5002336

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

libafl/src/fuzzer/mod.rs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,6 @@ pub trait Evaluator<E, EM, I, S> {
162162
executor: &mut E,
163163
manager: &mut EM,
164164
input: I,
165-
) -> Result<(ExecuteInputResult, Option<CorpusId>), Error> {
166-
self.evaluate_input_events(state, executor, manager, input, true)
167-
}
168-
169-
/// Runs the input and triggers observers and feedback,
170-
/// returns if is interesting an (option) the index of the new testcase in the corpus
171-
/// This version has a boolean to decide if send events to the manager.
172-
fn evaluate_input_events(
173-
&mut self,
174-
state: &mut S,
175-
executor: &mut E,
176-
manager: &mut EM,
177-
input: I,
178-
send_events: bool,
179165
) -> Result<(ExecuteInputResult, Option<CorpusId>), Error>;
180166

181167
/// Runs the input and triggers observers and feedback.
@@ -618,15 +604,14 @@ where
618604

619605
/// Process one input, adding to the respective corpora if needed and firing the right events
620606
#[inline]
621-
fn evaluate_input_events(
607+
fn evaluate_input(
622608
&mut self,
623609
state: &mut S,
624610
executor: &mut E,
625611
manager: &mut EM,
626612
input: I,
627-
send_events: bool,
628613
) -> Result<(ExecuteInputResult, Option<CorpusId>), Error> {
629-
self.evaluate_input_with_observers(state, executor, manager, input, send_events)
614+
self.evaluate_input_with_observers(state, executor, manager, input, true)
630615
}
631616

632617
/// Adds an input, even if it's not considered `interesting` by any of the executors

0 commit comments

Comments
 (0)