From abc6e44fb223241e23e321e54534dd98c8f74bfd Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 18 Aug 2022 00:50:57 -0400 Subject: [PATCH] Removed Location's dependency on Error --- file/location.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/file/location.go b/file/location.go index becb579..bd2004e 100644 --- a/file/location.go +++ b/file/location.go @@ -9,11 +9,6 @@ type Location struct { width int } -// NewError creates a new error at this location. -func (location Location) NewError (message string, kind ErrorKind) (err Error) { - return NewError(location, message, kind) -} - // File returns the file the location is in func (location Location) File () (file *File) { return location.file