OSDN Git Service

Remove unused functions
authorsdottaka <sdottaka@sourceforge.net>
Sun, 4 May 2014 12:13:02 +0000 (21:13 +0900)
committersdottaka <sdottaka@sourceforge.net>
Sun, 4 May 2014 12:13:02 +0000 (21:13 +0900)
--HG--
branch : stable

Src/ChildFrm.cpp
Src/ChildFrm.h
Src/Common/ClipBoard.cpp
Src/Common/ClipBoard.h
Src/ConfigLog.cpp
Src/ConfigLog.h
Src/DiffViewBar.cpp
Src/DiffViewBar.h

index b7383db..927295d 100644 (file)
@@ -574,13 +574,6 @@ void CChildFrame::OnClose()
        GetMainFrame()->ClearStatusbarItemCount();
 }
 
-
-/// update height for panels 3/4
-void CChildFrame::UpdateDiffDockbarHeight(int DiffPanelHeight)
-{
-       m_wndDetailBar.UpdateBarHeight(DiffPanelHeight);
-}
-
 /// update splitting position for panels 1/2 and headerbar and statusbar 
 void CChildFrame::UpdateHeaderSizes()
 {
index 00338f1..aa8b442 100644 (file)
@@ -114,7 +114,6 @@ public:
 // Implementation
 private:
        BOOL EnsureValidDockState(CDockState& state);
-       void UpdateDiffDockbarHeight(int DiffPanelHeight);
        void SavePosition();
        virtual ~CChildFrame();
 
index 31437a5..71105ee 100644 (file)
@@ -66,13 +66,3 @@ bool GetFromClipboard(String & text, HWND currentWindowHandle)
        }
        return bSuccess;
 }
-
-/**
- * @brief Checks if the clipboard allows Unicode format.
- * @return TRUE if Unicode is supported, FALSE otherwise.
- */
-bool TextInClipboard()
-{
-       UINT fmt = GetClipTcharTextFormat();
-       return IsClipboardFormatAvailable(fmt) != FALSE;
-}
index 9429eef..b013cdf 100644 (file)
@@ -13,6 +13,5 @@
 
 bool PutToClipboard(const String & text, HWND currentWindowHandle);
 bool GetFromClipboard(String & text, HWND currentWindowHandle);
-bool TextInClipboard();
 
 #endif // _CLIPBOARD_H_
index 3105f60..3591f13 100644 (file)
@@ -124,15 +124,6 @@ void CConfigLog::WriteItem(int indent, const String& key, long value)
 }
 
 /**
- * @brief Write boolean item using keywords (Yes|No)
- */
-void CConfigLog::WriteItemYesNo(int indent, const String& key, bool *pvalue)
-{
-       String text = string_format(_T("%*.0s%s: %s\r\n"), indent, key.c_str(), key.c_str(), *pvalue ? _T("Yes") : _T("No"));
-       m_pfile->WriteString(text);
-}
-
-/**
  * @brief Write out various possibly relevant windows locale information
  */
 void CConfigLog::WriteLocaleSettings(unsigned locid, const String& title)
index 3a153e1..38dcdf5 100644 (file)
@@ -61,7 +61,6 @@ private:
        String GetBuildFlags() const;
        void FileWriteString(const String& lpsz);
        void CloseFile();
-    void WriteItemYesNo(int indent, const String& key, bool *pvalue);
 
        // Implementation data
 private:
index f878e43..a25137b 100644 (file)
@@ -82,18 +82,6 @@ int CDiffViewBar::OnCreate(LPCREATESTRUCT lpCreateStruct)
        return 0;
 }
 
-
-int CDiffViewBar::GetPanelHeight()
-{
-       if (IsWindowVisible() == FALSE)
-               return 0;
-
-       int hDetailLeft,hmin;
-       m_pwndDetailSplitter->GetRowInfo(0, hDetailLeft, hmin);
-       return hDetailLeft;
-}
-
-
 /// update height for both panels
 void CDiffViewBar::UpdateBarHeight(int DiffPanelHeight)
 {
index 87ec305..0bceba8 100644 (file)
@@ -36,7 +36,6 @@ public:
        void setSplitter (CSplitterWndEx * pwndDetailSplitter)
                {       m_pwndDetailSplitter = pwndDetailSplitter; }
 
-       int  GetPanelHeight();
        void UpdateBarHeight(int DiffPanelHeight);
        void SetFrameHwnd(HWND hwndFrame);
        void UpdateResources();