diff --git a/src/apps/charactermap/UnicodeBlockView.cpp b/src/apps/charactermap/UnicodeBlockView.cpp index 9f6e75c1d3..fd192afb00 100644 --- a/src/apps/charactermap/UnicodeBlockView.cpp +++ b/src/apps/charactermap/UnicodeBlockView.cpp @@ -28,6 +28,7 @@ UnicodeBlockView::UnicodeBlockView(const char* name) fShowPrivateBlocks(false), fShowContainedBlocksOnly(false) { + _CreateBlocks(); } @@ -79,22 +80,6 @@ UnicodeBlockView::IsShowingBlock(int32 blockIndex) const } -void -UnicodeBlockView::AttachedToWindow() -{ - // TODO: if we're calling this in the constructor, strange things happen - _CreateBlocks(); -} - - -void -UnicodeBlockView::DetachedFromWindow() -{ - MakeEmpty(); - fBlocks.MakeEmpty(); -} - - void UnicodeBlockView::_UpdateBlocks() { diff --git a/src/apps/charactermap/UnicodeBlockView.h b/src/apps/charactermap/UnicodeBlockView.h index cb6f59273c..6bfedbc2a9 100644 --- a/src/apps/charactermap/UnicodeBlockView.h +++ b/src/apps/charactermap/UnicodeBlockView.h @@ -41,10 +41,6 @@ public: bool IsShowingBlock(int32 blockIndex) const; -protected: - virtual void AttachedToWindow(); - virtual void DetachedFromWindow(); - private: void _UpdateBlocks(); void _CreateBlocks();