1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00
Files
vcmi/lib
Alexander Wilms 522cb571b3 Remove redundant virtual specifiers
`grep -nr virtual | grep -v googletest | grep override > ../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(":")
        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-10 20:46:13 +01:00
..
2024-02-06 00:40:26 +02:00
2024-02-10 20:46:13 +01: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
2023-11-03 16:03:29 +02:00
2023-11-03 16:03:29 +02:00
2023-10-27 18:18:59 +00: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-01-21 18:12:46 +01:00
2024-02-01 13:28:08 +02:00
2023-12-24 09:58:48 +03: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
2023-12-16 21:10:27 +01:00
2023-12-16 21:10:27 +01:00
2024-01-19 13:56:05 +02:00
2024-01-19 13:56:05 +02:00