From ac34c3afb8c019251a18f15acb5ef43d655f1827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81rni=20Dagur?= Date: Sat, 9 May 2020 19:24:38 -0400 Subject: Revert commit 'Gag stderr for add_filter_list' --- Cargo.toml | 1 - src/lib.rs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9a5b1d0..c013260 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,6 @@ debug = true [dependencies] adblock = "0.2.8" pyo3 = "0.9" -gag = "0.1" [lib] name="adblock" diff --git a/src/lib.rs b/src/lib.rs index 2b93162..0fa3b39 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,6 @@ use pyo3::class::PyObjectProtocol; use pyo3::exceptions::ValueError as PyValueError; use pyo3::prelude::*; use pyo3::PyErr; -use gag::Gag; use std::collections::HashMap; use std::collections::HashSet; @@ -351,9 +350,6 @@ impl Engine { /// Add the contents of a block list file to the blocking engine. #[text_signature = "($self, filter_list)"] pub fn add_filter_list(&mut self, filter_list: &str) { - // Gag the any messages to stderr. This is necessary until issue - // https://github.com/brave/adblock-rust/issues/88 is closed. - let _stderr_gag = Gag::stderr(); self.engine.add_filter_list(filter_list); } -- cgit v1.2.3