OSDN Git Service

Remove unused declarations
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 8 Jan 2018 13:03:14 +0000 (22:03 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 8 Jan 2018 13:03:14 +0000 (22:03 +0900)
--HG--
branch : jp

Src/CompareStats.h
Src/ConfigLog.cpp
Src/DiffItem.h
Src/LocationView.h

index 4716bf0..89f2b62 100644 (file)
@@ -89,7 +89,6 @@ public:
        void Reset();
        void SetCompareState(CompareStats::CMP_STATE state);
        CompareStats::CMP_STATE GetCompareState() const;
-       void SetCurrentDiffItem(const DIFFITEM *di);
        bool IsCompareDone() const { return m_bCompareDone; }
        CompareStats::RESULT GetResultFromCode(unsigned diffcode) const;
        void Swap(int idx1, int idx2);
index d062f54..57989dc 100644 (file)
@@ -61,7 +61,7 @@ String CConfigLog::GetFileName() const
 /** 
  * @brief Write plugin names
  */
-void CConfigLog::WritePluginsInLogFile(LPCWSTR transformationEvent)
+void CConfigLog::WritePluginsInLogFile(const wchar_t *transformationEvent)
 {
        // get an array with the available scripts
        PluginArray * piPluginArray; 
@@ -97,7 +97,7 @@ static String GetLocaleString(LCID locid, LCTYPE lctype)
 /**
  * @brief Write string item
  */
-void CConfigLog::WriteItem(int indent, const String& key, LPCTSTR value)
+void CConfigLog::WriteItem(int indent, const String& key, const TCHAR *value)
 {
        String text = strutils::format(value ? _T("%*.0s%s: %s\r\n") : _T("%*.0s%s:\r\n"), indent, key.c_str(), key.c_str(), value);
        m_pfile->WriteString(text);
index 9bb317d..40f3419 100644 (file)
@@ -82,17 +82,10 @@ public:
        bool isDirectory() const { return Check(diffcode, DIFFCODE::TYPEFLAGS, DIFFCODE::DIR); }
        // left/right
        bool isSideFirstOnly() const { return CheckSide(diffcode, DIFFCODE::FIRST); }
-       bool isSideLeftOnlyOrBoth() const { return isSideFirstOnly() || isSideBoth(); }
-       void setSideFirstOnly() { SetSide(DIFFCODE::FIRST); }
        bool isSideSecondOnly() const { return CheckSide(diffcode, DIFFCODE::SECOND); }
-       bool isSideRightOnlyOrBoth() const { return isSideSecondOnly() || isSideBoth(); }
-       void setSideSecondOnly() { SetSide(DIFFCODE::SECOND); }
        bool isSideThirdOnly() const { return CheckSide(diffcode, DIFFCODE::THIRD); }
-       void setSideThirdOnly() { SetSide(DIFFCODE::THIRD); }
        bool isSideBoth() const { return CheckSide(diffcode, DIFFCODE::BOTH); }
-       void setSideBoth() { SetSide(DIFFCODE::BOTH); }
        bool isSideAll() const { return CheckSide(diffcode, DIFFCODE::ALL); }
-       void setSideAll() { SetSide(DIFFCODE::ALL); }
        void setSideNone() { SetSide(0); }
        void setSideFlag(int nIndex)
        {
@@ -204,8 +197,6 @@ struct DIFFITEM : ListEntry
 
        bool isEmpty() const { return this == &emptyitem; }
        String getFilepath(int nIndex, const String &sRoot) const;
-       String getLeftFilepath(const String &sLeftRoot) const;
-       String getRightFilepath(const String &sRightRoot) const;
        int GetDepth() const;
        bool IsAncestor(const DIFFITEM *pdi) const;
        bool HasChildren() const;
index a7c0ea9..debb8d0 100644 (file)
@@ -123,7 +123,6 @@ protected:
        afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar * pScrollBar);
        afx_msg void OnSize(UINT nType, int cx, int cy);
        afx_msg BOOL OnEraseBkgnd(CDC* pDC);
-       afx_msg void OnPaint();
        afx_msg void OnSetFocus(CWnd* pOldWnd);
        afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
        afx_msg void OnUpdateFileSaveLeft(CCmdUI* pCmdUI);