Skip to content

Commit 8666da7

Browse files
committed
chore: remove unused assets
Signed-off-by: Kyle Corry <kylecorry31@gmail.com>
1 parent 449ad0a commit 8666da7

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

app/src/main/assets/mapsforge/symbols/peak.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/remove-unused-assets.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import os
2-
from tqdm import tqdm
32

43
script_dir = os.path.dirname(os.path.abspath(__file__))
54

65
assets_path = os.path.join(script_dir, "../app/src/main/assets")
76
application_dir = os.path.join(script_dir, "../app/src/main")
87

9-
excluded_dirs = ['temperatures', 'tides', 'precipitation', 'dewpoint', 'dem', 'land.webp']
8+
excluded_dirs = ['temperatures', 'tides', 'precipitation', 'dewpoint', 'dem', 'land.webp', 'cell_towers']
109

1110
# Get all file names from the assets path
1211
files = []
@@ -28,9 +27,7 @@ def is_referenced(file):
2827
return False
2928

3029
# Check if the file is referenced in the project
31-
with tqdm(total=len(files), desc="Checking files") as pbar:
32-
for file in files:
33-
if not is_referenced(file):
34-
os.remove(os.path.join(assets_path, file))
35-
print(f"Removed unused asset: {file}")
36-
pbar.update(1)
30+
for file in files:
31+
if not is_referenced(file):
32+
os.remove(os.path.join(assets_path, file))
33+
print(f"Removed unused asset: {file}")

scripts/weekly-update.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
python3 update_contributors.py
22
python3 string-fixer.py
33
python3 update-guide.py
4+
python3 remove-unused-assets.py

0 commit comments

Comments
 (0)