OSDN Git Service

Remove unused declarations
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 14 Jan 2019 14:05:17 +0000 (23:05 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 14 Jan 2019 14:05:17 +0000 (23:05 +0900)
Src/Common/unicoder.cpp
Src/Common/unicoder.h
Src/DirView.h
Src/MainFrm.h
Src/OptionsInit.cpp
Src/ProjectFile.h

index a336085..3a76725 100644 (file)
@@ -800,7 +800,7 @@ void buffer::resize(size_t newSize)
        }
 }
 
-unsigned char *convertTtoUTF8(buffer * buf, LPCTSTR src, int srcbytes/* = -1*/)
+unsigned char *convertTtoUTF8(buffer * buf, const TCHAR *src, int srcbytes/* = -1*/)
 {
        bool bSucceeded;
 #ifdef _UNICODE
@@ -817,14 +817,14 @@ unsigned char *convertTtoUTF8(buffer * buf, LPCTSTR src, int srcbytes/* = -1*/)
        return buf->ptr;
 }
 
-unsigned char *convertTtoUTF8(LPCTSTR src, int srcbytes/* = -1*/)
+unsigned char *convertTtoUTF8(const TCHAR *src, int srcbytes/* = -1*/)
 {
        buffer buf(256);
        convertTtoUTF8(&buf, src, srcbytes);
        return (unsigned char *)_strdup((const char *)buf.ptr);
 }
 
-TCHAR *convertUTF8toT(buffer * buf, LPCSTR src, int srcbytes/* = -1*/)
+TCHAR *convertUTF8toT(buffer * buf, const char *src, int srcbytes/* = -1*/)
 {
        bool bSucceeded;
 #ifdef _UNICODE
@@ -841,7 +841,7 @@ TCHAR *convertUTF8toT(buffer * buf, LPCSTR src, int srcbytes/* = -1*/)
        return (TCHAR *)buf->ptr;
 }
 
-TCHAR *convertUTF8toT(LPCSTR src, int srcbytes/* = -1*/)
+TCHAR *convertUTF8toT(const char *src, int srcbytes/* = -1*/)
 {
        buffer buf(256);
        convertUTF8toT(&buf, src, srcbytes);
index bd714c8..ed45651 100644 (file)
@@ -44,7 +44,6 @@ enum UNICODESET : char
        UCS4LE,    /**< UTF-32 little endian */
        UCS4BE,    /**< UTF-32 big-endian */
 };
-String GetUnicodesetName(UNICODESET codeset);
 
 int Ucs4_to_Utf8(unsigned unich, unsigned char * utf8);
 int Utf8len_fromLeadByte(unsigned char ch);
index 543de32..649ac5c 100644 (file)
@@ -301,7 +301,6 @@ protected:
        afx_msg void OnCtxtDirZip();
        template<SIDE_TYPE stype>
        afx_msg void OnCtxtDirShellContextMenu();
-       afx_msg void OnUpdateCtxtDir(CCmdUI* pCmdUI);
        afx_msg void OnSelectAll();
        afx_msg void OnUpdateSelectAll(CCmdUI* pCmdUI);
        afx_msg void OnPluginPredifferMode(UINT nID);
index 03c504d..b4ccddb 100644 (file)
@@ -243,11 +243,8 @@ protected:
        afx_msg void OnHelpGnulicense();
        afx_msg void OnOptions();
        afx_msg void OnViewSelectfont();
-       afx_msg void OnUpdateViewSelectfont(CCmdUI* pCmdUI);
        afx_msg void OnViewUsedefaultfont();
-       afx_msg void OnUpdateViewUsedefaultfont(CCmdUI* pCmdUI);
        afx_msg void OnHelpContents();
-       afx_msg void OnUpdateHelpContents(CCmdUI* pCmdUI);
        afx_msg void OnClose();
        afx_msg void OnToolsGeneratePatch();
        afx_msg void OnDropFiles(const std::vector<String>& files);
index b6409f7..3310275 100644 (file)
@@ -20,9 +20,7 @@
 static void CopyHKLMValues();
 static bool OpenHKLM(HKEY *key, LPCTSTR relpath = nullptr);
 static bool OpenHKCU(HKEY *key, LPCTSTR relpath = nullptr);
-static bool IsFirstRun(HKEY key);
 static void CopyFromLMtoCU(HKEY lmKey, HKEY cuKey, LPCTSTR valname);
-static void ResetFirstRun(HKEY key);
 
 namespace Options
 {
index 9cb5fc6..3874526 100755 (executable)
@@ -49,7 +49,6 @@ public:
        bool GetLeftReadOnly() const;
        String GetMiddle(bool * pReadOnly = nullptr) const;
        bool GetMiddleReadOnly() const;
-       String GetMiddle() const;
        String GetRight(bool * pReadOnly = nullptr) const;
        bool GetRightReadOnly() const;
        String GetFilter() const;