Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
#5127: Remove a bit of unneeded code
  • Loading branch information
codereader committed Jan 2, 2021
1 parent 44d2501 commit b75f700
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions radiant/ui/mediabrowser/MediaBrowserTreeView.cpp
Expand Up @@ -276,7 +276,6 @@ MediaBrowserTreeView::MediaBrowserTreeView(wxWindow* parent) :

Bind(wxEVT_DATAVIEW_ITEM_ACTIVATED, &MediaBrowserTreeView::_onTreeViewItemActivated, this);
Bind(wxutil::EV_TREEMODEL_POPULATION_FINISHED, &MediaBrowserTreeView::_onTreeStorePopulationFinished, this);
Bind(wxEVT_PAINT, &MediaBrowserTreeView::_onExpose, this);
}

const MediaBrowserTreeView::TreeColumns& MediaBrowserTreeView::getColumns() const
Expand Down Expand Up @@ -342,17 +341,6 @@ void MediaBrowserTreeView::setSelection(const std::string& fullName)
ResourceTreeView::setSelection(fullName);
}

void MediaBrowserTreeView::_onExpose(wxPaintEvent& ev)
{
// Populate the tree view if it is not already populated
if (!_isPopulated)
{
populate();
}

ev.Skip();
}

void MediaBrowserTreeView::populateContextMenu(wxutil::PopupMenu& popupMenu)
{
// Construct the popup context menu
Expand Down
1 change: 0 additions & 1 deletion radiant/ui/mediabrowser/MediaBrowserTreeView.h
Expand Up @@ -59,7 +59,6 @@ class MediaBrowserTreeView :
void _onSelectItems(bool select);
void _onTreeViewItemActivated(wxDataViewEvent& ev);
void _onTreeStorePopulationFinished(wxutil::TreeModel::PopulationFinishedEvent& ev);
void _onExpose(wxPaintEvent& ev);
};

}
4 changes: 0 additions & 4 deletions tools/msvc/wxutillib.vcxproj
Expand Up @@ -227,10 +227,6 @@
<ClCompile Include="..\..\libs\wxutil\WindowPosition.cpp" />
<ClCompile Include="..\..\libs\wxutil\window\TransientWindow.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\libs\wxutil\Makefile.am" />
<None Include="..\..\libs\wxutil\Makefile.in" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
4 changes: 0 additions & 4 deletions tools/msvc/wxutillib.vcxproj.filters
Expand Up @@ -210,8 +210,4 @@
<Filter>dataview</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="..\..\libs\wxutil\Makefile.am" />
<None Include="..\..\libs\wxutil\Makefile.in" />
</ItemGroup>
</Project>

0 comments on commit b75f700

Please sign in to comment.