removed unneeded error reporter references
This commit is contained in:
@@ -4,10 +4,6 @@ public class Context {
|
||||
|
||||
public let environment: Environment
|
||||
|
||||
public var errorReporter: ErrorReporter {
|
||||
return environment.errorReporter
|
||||
}
|
||||
|
||||
init(dictionary: [String: Any]? = nil, environment: Environment? = nil) {
|
||||
if let dictionary = dictionary {
|
||||
dictionaries = [dictionary]
|
||||
|
||||
@@ -3,15 +3,12 @@ public struct Environment {
|
||||
public var extensions: [Extension]
|
||||
|
||||
public var loader: Loader?
|
||||
public var errorReporter: ErrorReporter
|
||||
|
||||
public init(loader: Loader? = nil,
|
||||
extensions: [Extension]? = nil,
|
||||
templateClass: Template.Type = Template.self,
|
||||
errorReporter: ErrorReporter = SimpleErrorReporter()) {
|
||||
templateClass: Template.Type = Template.self) {
|
||||
|
||||
self.templateClass = templateClass
|
||||
self.errorReporter = errorReporter
|
||||
self.loader = loader
|
||||
self.extensions = (extensions ?? []) + [DefaultExtension()]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user