Skip to content

Commit

Permalink
[56_4] Remove dir_cache and stat_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Oct 9, 2023
1 parent b72b305 commit 146b1de
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
8 changes: 0 additions & 8 deletions src/Mogan/Code/code.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,6 @@ immediate_options (int argc, char** argv) {
remove (url ("$TEXMACS_HOME_PATH/fonts/font-characteristics.scm"));
remove (url ("$TEXMACS_HOME_PATH/fonts/error") * url_wildcard ("*"));
}
else if (s == "-delete-doc-cache") {
remove (get_tm_cache_path () * url ("dir_cache.scm"));
remove (get_tm_cache_path () * url ("stat_cache.scm"));
}
else if (s == "-delete-file-cache") {
remove (get_tm_cache_path () * url ("dir_cache.scm"));
remove (get_tm_cache_path () * url ("stat_cache.scm"));
}
else if (s == "-delete-plugin-cache")
remove (get_tm_cache_path () * url ("plugin_cache.scm"));
else if (s == "-delete-server-data")
Expand Down
8 changes: 0 additions & 8 deletions src/Mogan/Draw/draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,6 @@ immediate_options (int argc, char** argv) {
remove (url ("$TEXMACS_HOME_PATH/fonts/font-characteristics.scm"));
remove (url ("$TEXMACS_HOME_PATH/fonts/error") * url_wildcard ("*"));
}
else if (s == "-delete-doc-cache") {
remove (get_tm_cache_path () * url ("dir_cache.scm"));
remove (get_tm_cache_path () * url ("stat_cache.scm"));
}
else if (s == "-delete-file-cache") {
remove (get_tm_cache_path () * url ("dir_cache.scm"));
remove (get_tm_cache_path () * url ("stat_cache.scm"));
}
else if (s == "-delete-plugin-cache")
remove (get_tm_cache_path () * url ("plugin_cache.scm"));
else if (s == "-delete-server-data")
Expand Down
8 changes: 0 additions & 8 deletions src/Mogan/Research/research.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,14 +508,6 @@ immediate_options (int argc, char** argv) {
remove (url ("$TEXMACS_HOME_PATH/fonts/font-characteristics.scm"));
remove (url ("$TEXMACS_HOME_PATH/fonts/error") * url_wildcard ("*"));
}
else if (s == "-delete-doc-cache") {
remove (get_tm_cache_path () * url ("dir_cache.scm"));
remove (get_tm_cache_path () * url ("stat_cache.scm"));
}
else if (s == "-delete-file-cache") {
remove (get_tm_cache_path () * url ("dir_cache.scm"));
remove (get_tm_cache_path () * url ("stat_cache.scm"));
}
else if (s == "-delete-plugin-cache")
remove (get_tm_cache_path () * url ("plugin_cache.scm"));
else if (s == "-delete-server-data")
Expand Down
2 changes: 0 additions & 2 deletions src/System/Boot/init_upgrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ init_upgrade () {

remove (url ("$TEXMACS_HOME_PATH/system/setup.scm"));
remove (get_tm_cache_path () * url_wildcard ("__*"));
remove (get_tm_cache_path () * url ("dir_cache.scm"));
remove (get_tm_cache_path () * url ("stat_cache.scm"));
remove (url ("$TEXMACS_HOME_PATH/fonts/font-database.scm"));
remove (url ("$TEXMACS_HOME_PATH/fonts/font-features.scm"));
remove (url ("$TEXMACS_HOME_PATH/fonts/font-characteristics.scm"));
Expand Down
4 changes: 0 additions & 4 deletions src/System/Misc/data_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ cache_load (string buffer) {

void
cache_memorize () {
cache_save ("dir_cache.scm");
cache_save ("stat_cache.scm");
cache_save ("font_cache.scm");
cache_save ("validate_cache.scm");
}
Expand All @@ -193,8 +191,6 @@ cache_refresh () {
cache_data = hashmap<tree,tree> ("?");
cache_loaded = hashset<string> ();
cache_changed= hashset<string> ();
cache_load ("dir_cache.scm");
cache_load ("stat_cache.scm");
cache_load ("font_cache.scm");
cache_load ("validate_cache.scm");
}
Expand Down

0 comments on commit 146b1de

Please sign in to comment.