From f48770ee5a60ad4b7455f126bf7dae35a44cefe3 Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Wed, 15 Jan 2020 22:21:16 +0100 Subject: [PATCH] Remove outdated code and comment --- src/msw/webview_edge.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/msw/webview_edge.cpp b/src/msw/webview_edge.cpp index 7dfbc4a292..d7504dffeb 100644 --- a/src/msw/webview_edge.cpp +++ b/src/msw/webview_edge.cpp @@ -386,21 +386,12 @@ void wxWebViewEdge::LoadHistoryItem(wxSharedPtr item) wxVector > wxWebViewEdge::GetBackwardHistory() { - wxVector > backhist; - //As we don't have std::copy or an iterator constructor in the wxwidgets - //native vector we construct it by hand - for (int i = 0; i < m_impl->m_historyPosition; i++) - { - backhist.push_back(m_impl->m_historyList[i]); - } - return backhist; + return m_impl->m_historyList; } wxVector > wxWebViewEdge::GetForwardHistory() { wxVector > forwardhist; - //As we don't have std::copy or an iterator constructor in the wxwidgets - //native vector we construct it by hand for (int i = m_impl->m_historyPosition + 1; i < static_cast(m_impl->m_historyList.size()); i++) { forwardhist.push_back(m_impl->m_historyList[i]);