Index: /trunk/src/Makefile.am
===================================================================
--- /trunk/src/Makefile.am	(revision 209)
+++ /trunk/src/Makefile.am	(revision 210)
@@ -15,5 +15,4 @@
 	settings_dialog.h \
 	ScoreDice.cpp \
-	simple_histogram.cpp \
 	simple_pie_plot.cpp \
 	statistics.cpp \
@@ -36,5 +35,4 @@
 	MainFrame.h \
 	ScoreDice.h \
-	simple_histogram.h \
 	simple_pie_plot.h \
 	statistics.h \
Index: unk/src/simple_histogram.cpp
===================================================================
--- /trunk/src/simple_histogram.cpp	(revision 209)
+++ 	(revision )
@@ -1,81 +1,0 @@
-/***************************************************************************
- *   Copyright (C) 2009 by Guy Rutenberg   *
- *   guyrutenberg@gmail.com   *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-
-#include "simple_histogram.h"
-#include <boost/foreach.hpp>
-#include <memory>
-using namespace std;
-
-SimpleHistogram::SimpleHistogram(wxWindow* parent, wxWindowID id,
-				const wxPoint& pos, const wxSize& size,
-				long style, const wxString& name)
-				: wxPanel(parent, id, pos, size, style, name)
-{
-	Connect(this->GetId(), wxEVT_PAINT, wxPaintEventHandler(SimpleHistogram::OnPaint));
-	Connect(this->GetId(), wxEVT_SIZE, wxSizeEventHandler(SimpleHistogram::OnResize));
-	
-}
-
-void SimpleHistogram::OnPaint(wxPaintEvent& event)
-{
-	wxPaintDC pdc(this);
-	auto_ptr<wxGraphicsContext> dc(wxGraphicsContext::Create(pdc));
-	
-	dc->SetBrush(*wxBLUE_BRUSH);
-	int width, height;
-	GetClientSize(&width, &height);
-
-	const double column_width = static_cast<double>(width) / data.size();
-
-	int i = 0;
-	double item_x, item_y, item_ratio, item_height;
-	BOOST_FOREACH(double d, data) {
-		item_x = i * column_width;
-		item_ratio = data_total ? d/data_total : 0;
-		item_height = item_ratio * height;
-		item_y = height-item_height;
-		dc->DrawRectangle(item_x, item_y, column_width, item_height);
-		i++;
-	}
-}
-
-void SimpleHistogram::OnResize(wxSizeEvent& event)
-{
-	Refresh();
-	event.Skip();
-}
-
-void SimpleHistogram::SetData(vector<double> d)
-{
-	data.assign(d.begin(), d.end());
-	data_total = 0;
-	BOOST_FOREACH(double tmp, data) {
-		data_total += tmp;
-	}
-}
-
-
-/*
-wxSize SimpleHistogram::DoGetBestSize() const
-{
-	
-	return wxSize(m_bitmap.GetWidth(),m_bitmap.GetHeight());
-}
-*/
Index: unk/src/simple_histogram.h
===================================================================
--- /trunk/src/simple_histogram.h	(revision 209)
+++ 	(revision )
@@ -1,40 +1,0 @@
-/***************************************************************************
- *   Copyright (C) 2009 by Guy Rutenberg   *
- *   guyrutenberg@gmail.com   *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-
-#include <wx/wx.h>
-#include <vector>
-
-#ifndef SIMPLE_HISTOGRAM_INC
-#define SIMPLE_HISTOGRAM_INC
-
-class SimpleHistogram : public wxPanel {
-public:
-	SimpleHistogram (wxWindow* parent, wxWindowID id,
-		 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
-		 long style = wxNO_BORDER, const wxString& name = wxPanelNameStr);
-	void SetData(std::vector<double> d);
-	void OnPaint(wxPaintEvent& event);
-	void OnResize(wxSizeEvent& event);
-private:
-	std::vector<double> data;
-	double data_total;
-};
-
-#endif
