CFG remove unused rules

This commit is contained in:
IlushaShurupov 2023-08-12 08:27:50 +03:00 committed by Ilya Shurupov
parent 2c8151ec3e
commit 16115b483a
3 changed files with 20 additions and 0 deletions

View file

@ -157,6 +157,7 @@ namespace tp {
[[nodiscard]] Node* find(const TypeArg data) const {
Node* found = mFirst;
for (alni i = 0; data != found->data; i++) {
if (i == length()) return nullptr;
if (!found->next) {
return nullptr;
}