summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-04 23:16:09 -0500
committerpommicket <pommicket@gmail.com>2023-01-04 23:16:09 -0500
commit629ce76eb480d63fdd57769a0d9972a1a0c0fbea (patch)
treef66c3a19c9f16ba09607e8818d49ed6c12ad4003 /config.c
parent808b9a13cb5c71c28db6c842b78ef7f1743283cd (diff)
more documentation
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/config.c b/config.c
index 2257722..f16e7b7 100644
--- a/config.c
+++ b/config.c
@@ -171,7 +171,6 @@ static void context_copy(SettingsContext *dest, const SettingsContext *src) {
dest->path = str_dup(src->path);
}
-// score is higher if context is closer match.
long context_score(const char *path, Language lang, const SettingsContext *context) {
long score = 0;
@@ -1058,8 +1057,6 @@ static char *last_separator(char *path) {
return NULL;
}
-// returns the best guess for the root directory of the project containing `path` (which should be an absolute path)
-// the return value should be freed.
char *settings_get_root_dir(Settings *settings, const char *path) {
char best_path[TED_PATH_MAX];
*best_path = '\0';