[geany/geany] 8c4c57: lregex: remove unused functions
Jiří Techet
git-noreply at xxxxx
Mon Dec 17 21:05:53 UTC 2018
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Wed, 12 Oct 2016 11:26:45 UTC
Commit: 8c4c570eb6ec4e8017386162e87f2b7e3ef3e5a0
https://github.com/geany/geany/commit/8c4c570eb6ec4e8017386162e87f2b7e3ef3e5a0
Log Message:
-----------
lregex: remove unused functions
So it's easier to sync them by simply getting the uctags versions.
Modified Paths:
--------------
ctags/main/lregex.c
ctags/main/parse.h
Modified: ctags/main/lregex.c
69 lines changed, 1 insertions(+), 68 deletions(-)
===================================================================
@@ -356,17 +356,6 @@ static void parseKinds (
}
}
-static void printRegexKind (const regexPattern *pat, unsigned int i, bool indent)
-{
- const kindOption *const kind = &pat [i].u.tag.kind;
- const char *const indentation = indent ? " " : "";
- Assert (pat [i].type == PTRN_TAG);
- printf ("%s%c %s %s\n", indentation,
- kind->letter != '\0' ? kind->letter : '?',
- kind->description != NULL ? kind->description : kind->name,
- kind->enabled ? "" : " [off]");
-}
-
static void processLanguageRegex (const langType language,
const char* const parameter)
{
@@ -575,63 +564,7 @@ extern void addLanguageRegex (
extern bool processRegexOption (const char *const option,
const char *const parameter CTAGS_ATTR_UNUSED)
{
- bool handled = false;
- const char* const dash = strchr (option, '-');
- if (dash != NULL && strncmp (option, "regex", dash - option) == 0)
- {
- langType language;
- language = getNamedLanguage (dash + 1, 0);
- if (language == LANG_IGNORE)
- printf ("regex: unknown language \"%s\" in --%s option\n", (dash + 1), option);
- else
- processLanguageRegex (language, parameter);
- handled = true;
- }
- return handled;
-}
-
-extern void disableRegexKinds (const langType language CTAGS_ATTR_UNUSED)
-{
- if (language <= SetUpper && Sets [language].count > 0)
- {
- patternSet* const set = Sets + language;
- unsigned int i;
- for (i = 0 ; i < set->count ; ++i)
- if (set->patterns [i].type == PTRN_TAG)
- set->patterns [i].u.tag.kind.enabled = false;
- }
-}
-
-extern bool enableRegexKind (
- const langType language CTAGS_ATTR_UNUSED,
- const int kind CTAGS_ATTR_UNUSED, const bool mode CTAGS_ATTR_UNUSED)
-{
- bool result = false;
- if (language <= SetUpper && Sets [language].count > 0)
- {
- patternSet* const set = Sets + language;
- unsigned int i;
- for (i = 0 ; i < set->count ; ++i)
- if (set->patterns [i].type == PTRN_TAG &&
- set->patterns [i].u.tag.kind.letter == kind)
- {
- set->patterns [i].u.tag.kind.enabled = mode;
- result = true;
- }
- }
- return result;
-}
-
-extern void printRegexKinds (const langType language CTAGS_ATTR_UNUSED, bool indent CTAGS_ATTR_UNUSED)
-{
- if (language <= SetUpper && Sets [language].count > 0)
- {
- patternSet* const set = Sets + language;
- unsigned int i;
- for (i = 0 ; i < set->count ; ++i)
- if (set->patterns [i].type == PTRN_TAG)
- printRegexKind (set->patterns, i, indent);
- }
+ return false;
}
extern void freeRegexResources (void)
Modified: ctags/main/parse.h
3 lines changed, 0 insertions(+), 3 deletions(-)
===================================================================
@@ -145,9 +145,6 @@ extern bool processRegexOption (const char *const option, const char *const para
extern void addLanguageRegex (const langType language, const char* const regex);
extern void addTagRegex (const langType language, const char* const regex, const char* const name, const char* const kinds, const char* const flags);
extern void addCallbackRegex (const langType language, const char* const regex, const char* flags, const regexCallback callback);
-extern void disableRegexKinds (const langType language CTAGS_ATTR_UNUSED);
-extern bool enableRegexKind (const langType language, const int kind, const bool mode);
-extern void printRegexKinds (const langType language, bool indent);
extern void freeRegexResources (void);
extern bool checkRegex (void);
--------------
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