riched20: Remove unused RTF functions and struct fields

Andrew Talbot andrew.talbot at talbotville.com
Sat Feb 7 14:46:57 CST 2009


Changelog:
    riched20: Remove unused RTF functions and struct fields.

diff --git a/dlls/riched20/reader.c b/dlls/riched20/reader.c
index 3df7109..15aa173 100644
--- a/dlls/riched20/reader.c
+++ b/dlls/riched20/reader.c
@@ -277,38 +277,6 @@ void RTFInit(RTF_Info *info)
         info->borderType = 0;
 }
 
-/*
- * Set or get the input or output file name.  These are never guaranteed
- * to be accurate, only insofar as the calling program makes them so.
- */
-
-void RTFSetInputName(RTF_Info *info, const char *name)
-{
-	info->inputName = RTFStrSave (name);
-	if (info->inputName == NULL)
-		ERR ("RTFSetInputName: out of memory\n");
-}
-
-
-char *RTFGetInputName(const RTF_Info *info)
-{
-	return (info->inputName);
-}
-
-
-void RTFSetOutputName(RTF_Info *info, const char *name)
-{
-	info->outputName = RTFStrSave (name);
-	if (info->outputName == NULL)
-		ERR ("RTFSetOutputName: out of memory\n");
-}
-
-
-char *RTFGetOutputName(const RTF_Info *info)
-{
-	return (info->outputName);
-}
-
 
 /*
  * Install or return a writer callback for a destination type
@@ -2429,14 +2397,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 6de440f..b0fb109 100644
--- a/dlls/riched20/rtf.h
+++ b/dlls/riched20/rtf.h
@@ -1152,9 +1152,6 @@ struct _RTF_Info {
     int unicodeLength; /* The length of ANSI representation of Unicode characters */
     int codePage; /* Current codepage for text conversion */
 
-    char *inputName;
-    char *outputName;
-
     ME_InStream *stream;
 
     ME_TextEditor *editor;
@@ -1191,10 +1188,6 @@ struct _RTF_Info {
 
 void		RTFInit (RTF_Info *);
 void	        RTFDestroy(RTF_Info *info);
-void		RTFSetInputName (RTF_Info *, const char *);
-char		*RTFGetInputName (const RTF_Info *);
-void		RTFSetOutputName (RTF_Info *, const char *);
-char		*RTFGetOutputName (const RTF_Info *);
 void		RTFSetDestinationCallback (RTF_Info *, int, RTFFuncPtr);
 void		RTFRead (RTF_Info *);
 int		RTFGetToken (RTF_Info *);	/* writer should rarely need this */
@@ -1210,7 +1203,6 @@ 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);



More information about the wine-patches mailing list