Skip to content

Commit

Permalink
Merge pull request #1419 from berryzplus/feature/remove_zenhan_binary
Browse files Browse the repository at this point in the history
未使用のCFigureクラス(全角バイナリと半角バイナリ)を除去する
  • Loading branch information
berryzplus authored Oct 4, 2020
2 parents 8f58ec8 + 6c57489 commit 455a7ff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
2 changes: 0 additions & 2 deletions sakura_core/view/figures/CFigureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ CFigureManager::CFigureManager()
m_vFigures.push_back(new CFigure_ZenSpace());
m_vFigures.push_back(new CFigure_Eol());
m_vFigures.push_back(new CFigure_CtrlCode());
m_vFigures.push_back(new CFigure_HanBinary());
m_vFigures.push_back(new CFigure_ZenBinary());
m_vFigures.push_back(new CFigure_Text());

OnChangeSetting();
Expand Down
18 changes: 0 additions & 18 deletions sakura_core/view/figures/CFigure_CtrlCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,3 @@ void CFigure_CtrlCode::DispSpaceEx(CGraphics& gr, DispPos* pDispPos, CEditView*
}
pDispPos->ForwardDrawCol(CLayoutXInt(dx[0]));
}

// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- //
// CFigure_HanBinary //
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- //

bool CFigure_HanBinary::Match(const wchar_t* pText, int nTextLen) const
{
return false;
}

// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- //
// CFigure_ZenBinary //
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- //

bool CFigure_ZenBinary::Match(const wchar_t* pText, int nTextLen) const
{
return false;
}
22 changes: 0 additions & 22 deletions sakura_core/view/figures/CFigure_CtrlCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,4 @@ class CFigure_CtrlCode : public CFigureSpace{
}
EColorIndexType GetColorIdx(void) const override { return COLORIDX_CTRLCODE; }
};

//! バイナリ半角描画
class CFigure_HanBinary final: public CFigure_CtrlCode{
public:
//traits
bool Match(const wchar_t* pText, int nTextLen) const override;

//action
wchar_t GetAlternateChar() const override { return L''; }
EColorIndexType GetColorIdx(void) const override { return COLORIDX_CTRLCODE; }
};

//! バイナリ全角描画
class CFigure_ZenBinary final : public CFigure_CtrlCode{
public:
//traits
bool Match(const wchar_t* pText, int nTextLen) const override;

//action
wchar_t GetAlternateChar() const override { return L''; }
EColorIndexType GetColorIdx(void) const override { return COLORIDX_CTRLCODE; }
};
#endif /* SAKURA_CFIGURE_CTRLCODE_53EB409B_17F7_4B7F_9AD2_A00C29CDC792_H_ */

0 comments on commit 455a7ff

Please sign in to comment.