Permalink
Browse files

strip out unfinished product, review and market stuff,

enable _() instead of wxT() in uiproject.fbp so it uses wxGetTranslation for the wxFormBuilder generated part of the UI

git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@64 1a98c847-1fd6-4fd8-948a-caf3550aa51b
  • Loading branch information...
1 parent 64a474a commit 5253d1ab77fab1995ede03fb934edd67f1359ba8 @invalid-email-address invalid-email-address committed Feb 15, 2010
Showing with 127 additions and 8,464 deletions.
  1. +0 −21 db.cpp
  2. +0 −39 db.h
  3. +0 −1 headers.h
  4. +2 −22 main.cpp
  5. +2 −5 makefile
  6. +2 −5 makefile.unix.wx2.8
  7. +2 −5 makefile.unix.wx2.9
  8. +2 −5 makefile.vc
  9. +0 −264 market.cpp
  10. +0 −182 market.h
  11. +0 −9 net.cpp
  12. +0 −6 net.h
  13. +1 −1 serialize.h
  14. +10 −920 ui.cpp
  15. +3 −139 ui.h
  16. +72 −779 uibase.cpp
  17. +15 −272 uibase.h
  18. +16 −5,789 uiproject.fbp
View
@@ -508,27 +508,6 @@ bool LoadAddresses()
//
-// CReviewDB
-//
-
-bool CReviewDB::ReadReviews(uint256 hash, vector<CReview>& vReviews)
-{
- vReviews.size(); // msvc workaround, just need to do anything with vReviews
- return Read(make_pair(string("reviews"), hash), vReviews);
-}
-
-bool CReviewDB::WriteReviews(uint256 hash, const vector<CReview>& vReviews)
-{
- return Write(make_pair(string("reviews"), hash), vReviews);
-}
-
-
-
-
-
-
-
-//
// CWalletDB
//
View
@@ -285,45 +285,6 @@ class CTxDB : public CDB
-class CReviewDB : public CDB
-{
-public:
- CReviewDB(const char* pszMode="r+") : CDB("reviews.dat", pszMode) { }
-private:
- CReviewDB(const CReviewDB&);
- void operator=(const CReviewDB&);
-public:
- bool ReadUser(uint256 hash, CUser& user)
- {
- return Read(make_pair(string("user"), hash), user);
- }
-
- bool WriteUser(uint256 hash, const CUser& user)
- {
- return Write(make_pair(string("user"), hash), user);
- }
-
- bool ReadReviews(uint256 hash, vector<CReview>& vReviews);
- bool WriteReviews(uint256 hash, const vector<CReview>& vReviews);
-};
-
-
-
-
-
-class CMarketDB : public CDB
-{
-public:
- CMarketDB(const char* pszMode="r+") : CDB("market.dat", pszMode) { }
-private:
- CMarketDB(const CMarketDB&);
- void operator=(const CMarketDB&);
-};
-
-
-
-
-
class CAddrDB : public CDB
{
public:
View
@@ -99,7 +99,6 @@ using namespace boost;
#include "net.h"
#include "irc.h"
#include "main.h"
-#include "market.h"
#include "rpc.h"
#include "uibase.h"
#include "ui.h"
View
@@ -1706,10 +1706,8 @@ bool AlreadyHave(CTxDB& txdb, const CInv& inv)
{
switch (inv.type)
{
- case MSG_TX: return mapTransactions.count(inv.hash) || txdb.ContainsTx(inv.hash);
- case MSG_BLOCK: return mapBlockIndex.count(inv.hash) || mapOrphanBlocks.count(inv.hash);
- case MSG_REVIEW: return true;
- case MSG_PRODUCT: return mapProducts.count(inv.hash);
+ case MSG_TX: return mapTransactions.count(inv.hash) || txdb.ContainsTx(inv.hash);
+ case MSG_BLOCK: return mapBlockIndex.count(inv.hash) || mapOrphanBlocks.count(inv.hash);
}
// Don't know what it is, just say we already got one
return true;
@@ -2108,24 +2106,6 @@ bool ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
}
- else if (strCommand == "review")
- {
- CDataStream vMsg(vRecv);
- CReview review;
- vRecv >> review;
-
- CInv inv(MSG_REVIEW, review.GetHash());
- pfrom->AddInventoryKnown(inv);
-
- if (review.AcceptReview())
- {
- // Relay the original message as-is in case it's a higher version than we know how to parse
- RelayMessage(inv, vMsg);
- mapAlreadyAskedFor.erase(inv);
- }
- }
-
-
else if (strCommand == "block")
{
auto_ptr<CBlock> pblock(new CBlock);
View
@@ -25,7 +25,7 @@ LIBS= \
-l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l shlwapi
WXDEFS=-DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH
CFLAGS=-mthreads -O0 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)
-HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h market.h rpc.h uibase.h ui.h
+HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h
@@ -50,9 +50,6 @@ obj/net.o: net.cpp $(HEADERS)
obj/main.o: main.cpp $(HEADERS) sha.h
g++ -c $(CFLAGS) -o $@ $<
-obj/market.o: market.cpp $(HEADERS)
- g++ -c $(CFLAGS) -o $@ $<
-
obj/ui.o: ui.cpp $(HEADERS)
g++ -c $(CFLAGS) -o $@ $<
@@ -73,7 +70,7 @@ obj/ui_res.o: ui.rc rc/bitcoin.ico rc/check.ico rc/send16.bmp rc/send16mask.bmp
-OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o \
+OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o \
obj/ui.o obj/uibase.o obj/sha.o obj/irc.o obj/rpc.o \
obj/ui_res.o
View
@@ -35,7 +35,7 @@ LIBS= \
WXDEFS=-D__WXGTK__ -DNOPCH
CFLAGS=-O0 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)
-HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h market.h rpc.h uibase.h ui.h
+HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h
@@ -60,9 +60,6 @@ obj/net.o: net.cpp $(HEADERS)
obj/main.o: main.cpp $(HEADERS) sha.h
g++ -c $(CFLAGS) -o $@ $<
-obj/market.o: market.cpp $(HEADERS)
- g++ -c $(CFLAGS) -o $@ $<
-
obj/ui.o: ui.cpp $(HEADERS)
g++ -c $(CFLAGS) -o $@ $<
@@ -80,7 +77,7 @@ obj/rpc.o: rpc.cpp $(HEADERS)
-OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o \
+OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o \
obj/ui.o obj/uibase.o obj/sha.o obj/irc.o obj/rpc.o
bitcoin: headers.h.gch $(OBJS)
View
@@ -35,7 +35,7 @@ LIBS= \
WXDEFS=-D__WXGTK__ -DNOPCH
CFLAGS=-O0 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)
-HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h market.h rpc.h uibase.h ui.h
+HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h
@@ -60,9 +60,6 @@ obj/net.o: net.cpp $(HEADERS)
obj/main.o: main.cpp $(HEADERS) sha.h
g++ -c $(CFLAGS) -o $@ $<
-obj/market.o: market.cpp $(HEADERS)
- g++ -c $(CFLAGS) -o $@ $<
-
obj/ui.o: ui.cpp $(HEADERS)
g++ -c $(CFLAGS) -o $@ $<
@@ -80,7 +77,7 @@ obj/rpc.o: rpc.cpp $(HEADERS)
-OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o obj/market.o \
+OBJS=obj/util.o obj/script.o obj/db.o obj/net.o obj/main.o \
obj/ui.o obj/uibase.o obj/sha.o obj/irc.o obj/rpc.o
bitcoin: headers.h.gch $(OBJS)
View
@@ -23,7 +23,7 @@ LIBS= \
kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib ws2_32.lib shlwapi.lib
WXDEFS=/DWIN32 /D__WXMSW__ /D_WINDOWS /DNOPCH
CFLAGS=/c /nologo /Ob0 /MD$(D) /EHsc /GR /Zm300 $(DEBUGFLAGS) $(WXDEFS) $(INCLUDEPATHS)
-HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h market.h rpc.h uibase.h ui.h
+HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h
@@ -45,9 +45,6 @@ obj\net.obj: net.cpp $(HEADERS)
obj\main.obj: main.cpp $(HEADERS) sha.h
cl $(CFLAGS) /Fo$@ %s
-obj\market.obj: market.cpp $(HEADERS)
- cl $(CFLAGS) /Fo$@ %s
-
obj\ui.obj: ui.cpp $(HEADERS)
cl $(CFLAGS) /Fo$@ %s
@@ -68,7 +65,7 @@ obj\ui.res: ui.rc rc/bitcoin.ico rc/check.ico rc/send16.bmp rc/send16mask.bmp r
-OBJS=obj\util.obj obj\script.obj obj\db.obj obj\net.obj obj\main.obj obj\market.obj \
+OBJS=obj\util.obj obj\script.obj obj\db.obj obj\net.obj obj\main.obj \
obj\ui.obj obj\uibase.obj obj\sha.obj obj\irc.obj obj\rpc.obj \
obj\ui.res
Oops, something went wrong.

0 comments on commit 5253d1a

Please sign in to comment.