riched20: RTFPeekToken(), RTFExpandStyle() and RTFHexToChar() are unused so remove them.
Francois Gouget
fgouget at free.fr
Mon May 25 17:48:34 CDT 2009
---
As far as I can tell these were were not used in the past four years
either. So I propose to just remove them.
dlls/riched20/reader.c | 69 ------------------------------------------------
dlls/riched20/rtf.h | 3 --
2 files changed, 0 insertions(+), 72 deletions(-)
diff --git a/dlls/riched20/reader.c b/dlls/riched20/reader.c
index 10aa19e..c565bc1 100644
--- a/dlls/riched20/reader.c
+++ b/dlls/riched20/reader.c
@@ -446,14 +446,6 @@ static void RTFUngetToken(RTF_Info *info)
}
-int RTFPeekToken(RTF_Info *info)
-{
- _RTFGetToken (info);
- RTFUngetToken (info);
- return (info->rtfClass);
-}
-
-
static void _RTFGetToken(RTF_Info *info)
{
if (info->rtfFormat == SF_TEXT)
@@ -1292,59 +1284,6 @@ RTFColor *RTFGetColor(const RTF_Info *info, int num)
/* ---------------------------------------------------------------------- */
-
-/*
- * Expand style n, if there is such a style.
- */
-
-void RTFExpandStyle(RTF_Info *info, int n)
-{
- RTFStyle *s;
- RTFStyleElt *se;
-
- if (n == -1)
- return;
- s = RTFGetStyle (info, n);
- if (s == NULL)
- return;
- if (s->rtfExpanding != 0)
- ERR ("Style expansion loop, style %d\n", n);
- s->rtfExpanding = 1; /* set expansion flag for loop detection */
- /*
- * Expand "based-on" style (unless it's the same as the current
- * style -- Normal style usually gives itself as its own based-on
- * style). Based-on style expansion is done by synthesizing
- * the token that the writer needs to see in order to trigger
- * another style expansion, and feeding to token back through
- * the router so the writer sees it.
- */
- if (n != s->rtfSBasedOn)
- {
- RTFSetToken (info, rtfControl, rtfParAttr, rtfStyleNum,
- s->rtfSBasedOn, "\\s");
- RTFRouteToken (info);
- }
- /*
- * Now route the tokens unique to this style. RTFSetToken()
- * isn't used because it would add the param value to the end
- * of the token text, which already has it in.
- */
- for (se = s->rtfSSEList; se != NULL; se = se->rtfNextSE)
- {
- info->rtfClass = se->rtfSEClass;
- info->rtfMajor = se->rtfSEMajor;
- info->rtfMinor = se->rtfSEMinor;
- info->rtfParam = se->rtfSEParam;
- lstrcpyA (info->rtfTextBuf, se->rtfSEText);
- info->rtfTextLen = lstrlenA (info->rtfTextBuf);
- RTFRouteToken (info);
- }
- s->rtfExpanding = 0; /* done - clear expansion flag */
-}
-
-
-/* ---------------------------------------------------------------------- */
-
/*
* Control symbol lookup routines
*/
@@ -2397,14 +2336,6 @@ int RTFCharToHex(char c)
}
-int RTFHexToChar(int i)
-{
- if (i < 10)
- return (i + '0');
- return (i - 10 + 'a');
-}
-
-
/* ---------------------------------------------------------------------- */
/*
diff --git a/dlls/riched20/rtf.h b/dlls/riched20/rtf.h
index e8cfb34..3277301 100644
--- a/dlls/riched20/rtf.h
+++ b/dlls/riched20/rtf.h
@@ -1191,19 +1191,16 @@ void RTFDestroy(RTF_Info *info);
void RTFSetDestinationCallback (RTF_Info *, int, RTFFuncPtr);
void RTFRead (RTF_Info *);
int RTFGetToken (RTF_Info *); /* writer should rarely need this */
-int RTFPeekToken (RTF_Info *);
void RTFSetReadHook (RTF_Info *, RTFFuncPtr);
void RTFRouteToken (RTF_Info *);
void RTFSkipGroup (RTF_Info *);
void RTFReadGroup (RTF_Info *);
-void RTFExpandStyle (RTF_Info *, int);
int RTFCheckCM (const RTF_Info *, int, int);
int RTFCheckCMM (const RTF_Info *, int, int, int);
int RTFCheckMM (const RTF_Info *, int, int);
RTFFont *RTFGetFont (const RTF_Info *, int);
RTFColor *RTFGetColor (const RTF_Info *, int);
int RTFCharToHex ( char);
-int RTFHexToChar ( int );
void RTFFlushOutputBuffer( RTF_Info *info );
void RTFSetEditStream(RTF_Info *info, ME_InStream *stream);
--
1.6.2.4
More information about the wine-patches
mailing list