aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/error_reporting.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2017-07-06 13:18:36 -0400
committerJosh Matthews <josh@joshmatthews.net>2017-07-10 20:46:08 -0400
commita08371e8eb343bd6372aa60d7658ff4b7bb5da15 (patch)
treec2a7134889dc0658ef854714a6b20d4e221ba26f /components/style/error_reporting.rs
parent4b91014b140d8a67e7de01489f3c3d52bd311c17 (diff)
downloadservo-a08371e8eb343bd6372aa60d7658ff4b7bb5da15.tar.gz
servo-a08371e8eb343bd6372aa60d7658ff4b7bb5da15.zip
stylo: Create error reporters linked to documents (bug 1352669)
Diffstat (limited to 'components/style/error_reporting.rs')
-rw-r--r--components/style/error_reporting.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/components/style/error_reporting.rs b/components/style/error_reporting.rs
index e2a28ea0f91..eda926f8cf3 100644
--- a/components/style/error_reporting.rs
+++ b/components/style/error_reporting.rs
@@ -139,7 +139,7 @@ impl<'a> ContextualParseError<'a> {
}
/// A generic trait for an error reporter.
-pub trait ParseErrorReporter : Sync {
+pub trait ParseErrorReporter {
/// Called when the style engine detects an error.
///
/// Returns the current input being parsed, the source position it was
@@ -188,8 +188,3 @@ impl ParseErrorReporter for NullReporter {
// do nothing
}
}
-
-/// Create an instance of the default error reporter.
-pub fn create_error_reporter() -> RustLogReporter {
- RustLogReporter
-}