1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-10 00:43:59 +02:00
vcmi/AI/Nullkiller/Pathfinding/Actions
Alexander Wilms 678cacbd25 Remove more redundant virtual specifiers
`grep -nr "virtual " | grep -v googletest | grep " override" | grep -v overriden > ../redundant_virtual.txt`

```python
import os

with open("../redundant_virtual.txt") as f:
    for line in f:
        print()
        line: str = line.strip()
        print(line)
        tmp = line.split(":",2)
        file = tmp[0].strip()
        code = tmp[-1].strip()
        print(file)
        print(code)
        new_code = code.replace("virtual ", "", 1)
        # https://superuser.com/a/802490/578501
        command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
        os.system(command)
```
2024-02-13 15:21:30 +01:00
..
AdventureSpellCastMovementActions.cpp NKAI: fix lock 2024-01-21 10:05:40 +02:00
AdventureSpellCastMovementActions.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
BattleAction.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
BattleAction.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
BoatActions.cpp NKAI: water and air walking 2023-09-30 10:37:32 +03:00
BoatActions.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
BuyArmyAction.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
BuyArmyAction.h Moved CGameState files into a separate directory 2023-06-26 17:15:59 +03:00
QuestAction.cpp Refactor quests progress 2023-10-11 21:10:42 +02:00
QuestAction.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
SpecialAction.cpp NKAI: composite pathfinder actions and fix for guarded bordergate 2023-05-07 09:15:37 +03:00
SpecialAction.h NKAI: water and air walking 2023-09-30 10:37:32 +03:00
TownPortalAction.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
TownPortalAction.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00