From 6245a41fe00b1509036da1d9de47885b9b85e34c Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Thu, 20 Oct 2022 13:32:05 +0300 Subject: [PATCH] fix: remove = operator from locaton --- src/utils/location.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils/location.cc b/src/utils/location.cc index 4138fc1..9169ddd 100644 --- a/src/utils/location.cc +++ b/src/utils/location.cc @@ -56,15 +56,6 @@ location_t location_t::intersect(location_t other) const { return a; } -location_t &location_t::operator=(const location_t &other) { - if (this->filename != other.filename) throw "Can't assign to location with different filename."s; - this->line = other.line; - this->start = other.start; - this->length = other.length; - this->code_start = other.code_start; - return *this; -} - bool location_t::operator==(const location_t &other) const { if (this->filename != other.filename) return false; if (this->line != other.line) return false;