1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-28 03:57:02 +02:00
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
..
2024-02-11 17:31:30 +02:00
2023-12-16 21:10:27 +01:00
2024-01-27 15:28:21 +02:00
2024-01-27 23:01:57 +02:00
2024-01-16 19:02:39 +00:00
2023-12-14 10:29:42 +03:00
2024-01-20 17:54:15 +01:00
2024-01-19 13:55:22 +02:00
2024-02-07 19:27:02 +01:00
2024-02-07 19:27:02 +01:00
2024-02-02 13:09:12 +02:00
2024-02-02 13:09:12 +02:00
2024-01-19 23:02:00 +02:00
2023-12-16 19:26:41 +01:00
2024-02-01 18:22:11 +02:00
2024-02-12 12:33:09 +02:00
2024-01-19 13:56:05 +02:00
2024-01-19 13:56:05 +02:00