fix: remove = operator from locaton

This commit is contained in:
TopchetoEU 2022-10-20 13:32:05 +03:00
parent 7a1cc27514
commit 6245a41fe0

View File

@ -56,15 +56,6 @@ location_t location_t::intersect(location_t other) const {
return a; 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 { bool location_t::operator==(const location_t &other) const {
if (this->filename != other.filename) return false; if (this->filename != other.filename) return false;
if (this->line != other.line) return false; if (this->line != other.line) return false;