Remove unused argument ft_id from styleset_common().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3031 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-10-01 17:26:15 +00:00
parent 604a981482
commit 75f2386eeb
2 changed files with 5 additions and 5 deletions

View File

@ -5,6 +5,8 @@
Add 'make hacking-doc' target to generate hacking.html.
* src/highlighting.c:
Fix using common styleset for filetype None.
* src/highlighting.c:
Remove unused argument ft_id from styleset_common().
2008-09-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -433,7 +433,7 @@ static void styleset_common_init(gint ft_id, GKeyFile *config, GKeyFile *config_
}
static void styleset_common(ScintillaObject *sci, filetype_id ft_id)
static void styleset_common(ScintillaObject *sci)
{
SSM(sci, SCI_STYLECLEARALL, 0, 0);
@ -621,7 +621,7 @@ apply_filetype_properties(ScintillaObject *sci, gint lexer, filetype_id ft_id)
SSM(sci, SCI_AUTOCSETMAXHEIGHT, editor_prefs.symbolcompletion_max_height, 0);
styleset_common(sci, ft_id);
styleset_common(sci);
}
@ -1908,11 +1908,9 @@ static void styleset_docbook(ScintillaObject *sci)
static void styleset_none(ScintillaObject *sci)
{
const filetype_id ft_id = GEANY_FILETYPES_NONE;
SSM(sci, SCI_SETLEXER, SCLEX_NULL, 0);
styleset_common(sci, ft_id);
styleset_common(sci);
set_sci_style(sci, STYLE_DEFAULT, GEANY_FILETYPES_NONE, GCS_DEFAULT);