[geany/geany] ed6d24: Remove unused functions from options.c/h
Jiří Techet
git-noreply at xxxxx
Mon Dec 17 21:05:29 UTC 2018
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Sat, 08 Oct 2016 12:12:44 UTC
Commit: ed6d24bb9a3ce9f8393e97eb753bdb3f57feed84
https://github.com/geany/geany/commit/ed6d24bb9a3ce9f8393e97eb753bdb3f57feed84
Log Message:
-----------
Remove unused functions from options.c/h
Modified Paths:
--------------
ctags/main/options.c
ctags/main/options.h
Modified: ctags/main/options.c
53 lines changed, 0 insertions(+), 53 deletions(-)
===================================================================
@@ -197,56 +197,3 @@ extern bool isIgnoreToken (const char *const name,
}
return result;
}
-
-void addIgnoreListFromFile (const char *const fileName)
-{
- stringList* tokens = stringListNewFromFile (fileName);
- if (Option.ignore == NULL)
- Option.ignore = tokens;
- else
- stringListCombine (Option.ignore, tokens);
-}
-
-extern void processExcludeOption (const char *const option CTAGS_ATTR_UNUSED,
- const char *const parameter)
-{
- if (parameter [0] == '\0')
- freeList (&Excluded);
- else if (parameter [0] == '@')
- {
- stringList* const new = stringListNewFromFile (parameter + 1);
- if (Excluded == NULL)
- Excluded = new;
- else
- stringListCombine (Excluded, new);
- }
- else
- {
- vString *const item = vStringNewInit (parameter);
- if (Excluded == NULL)
- Excluded = stringListNew ();
- stringListAdd (Excluded, item);
- }
-}
-
-extern bool isExcludedFile (const char* const name)
-{
- const char* base = baseFilename (name);
- bool result = false;
- if (Excluded != NULL)
- {
- result = stringListFileMatched (Excluded, base);
- if (! result && name != base)
- result = stringListFileMatched (Excluded, name);
- }
- return result;
-}
-
-
-
-/*
- * Generic option parsing
- */
-#define readOptionConfiguration
-#define initOptions
-#define freeOptionResources
Modified: ctags/main/options.h
6 lines changed, 0 insertions(+), 6 deletions(-)
===================================================================
@@ -98,12 +98,6 @@ extern void freeList (stringList** const pString);
extern void setDefaultTagFileName (void);
extern bool isIncludeFile (const char *const fileName);
-extern bool isExcludedFile (const char* const name);
extern bool isIgnoreToken (const char *const name, bool *const pIgnoreParens, const char **const replacement);
-extern void readOptionConfiguration (void);
-extern void initOptions (void);
-extern void freeOptionResources (void);
-
-void addIgnoreListFromFile (const char *const fileName);
#endif /* CTAGS_MAIN_OPTIONS_H */
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list