Skip to content

Commit

Permalink
Merge pull request bitcoin#4812
Browse files Browse the repository at this point in the history
53efb09 Discover some missing includes (jtimon)
8d5e510 Remove unused function StackString() and class CCoins; (jtimon)
  • Loading branch information
sipa committed Sep 2, 2014
2 parents 6ce927c + 53efb09 commit b8d9223
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 21 deletions.
2 changes: 2 additions & 0 deletions src/bloom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <math.h>
#include <stdlib.h>

#include <boost/foreach.hpp>

#define LN2SQUARED 0.4804530139182014246671025263266649717305529515945455
#define LN2 0.6931471805599453094172321214581765680755001343602552

Expand Down
2 changes: 2 additions & 0 deletions src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include "tinyformat.h"

#include <boost/foreach.hpp>

std::string COutPoint::ToString() const
{
return strprintf("COutPoint(%s, %u)", hash.ToString().substr(0,10), n);
Expand Down
2 changes: 2 additions & 0 deletions src/core_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "utilmoneystr.h"
#include "base58.h"

#include <boost/foreach.hpp>

using namespace std;

string EncodeHexTx(const CTransaction& tx)
Expand Down
2 changes: 2 additions & 0 deletions src/qt/recentrequeststablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include "guiutil.h"
#include "optionsmodel.h"

#include <boost/foreach.hpp>

RecentRequestsTableModel::RecentRequestsTableModel(CWallet *wallet, WalletModel *parent) :
walletModel(parent)
{
Expand Down
2 changes: 2 additions & 0 deletions src/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <boost/tuple/tuple_comparison.hpp>
#include <boost/tuple/tuple.hpp>

#include <boost/foreach.hpp>

using namespace std;
using namespace boost;

Expand Down
21 changes: 0 additions & 21 deletions src/script.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
#include <string>
#include <vector>

#include <boost/foreach.hpp>
#include <boost/variant.hpp>

class CCoins;
class CKeyStore;
class CTransaction;
struct CMutableTransaction;
Expand Down Expand Up @@ -411,25 +409,6 @@ inline std::string ValueString(const std::vector<unsigned char>& vch)
return HexStr(vch);
}

inline std::string StackString(const std::vector<std::vector<unsigned char> >& vStack)
{
std::string str;
BOOST_FOREACH(const std::vector<unsigned char>& vch, vStack)
{
if (!str.empty())
str += " ";
str += ValueString(vch);
}
return str;
}








/** Serialized script, used inside transaction inputs and outputs */
class CScript : public std::vector<unsigned char>
{
Expand Down

0 comments on commit b8d9223

Please sign in to comment.