Skip to content

Commit

Permalink
Removed SHIMEVENT_PUMPED. It wasn't necessary, and needlessly spammy.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 25, 2013
1 parent e1c0bd6 commit 234f039
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions steamshim_child.c
Expand Up @@ -237,7 +237,6 @@ static const STEAMSHIM_Event *processEvent(const uint8 *buf, size_t buflen)
if (0) {}
#define PRINTGOTEVENT(x) else if (type == x) printf("Child got " #x ".\n")
PRINTGOTEVENT(SHIMEVENT_BYE);
PRINTGOTEVENT(SHIMEVENT_PUMPED);
PRINTGOTEVENT(SHIMEVENT_STATSRECEIVED);
PRINTGOTEVENT(SHIMEVENT_STATSSTORED);
PRINTGOTEVENT(SHIMEVENT_SETACHIEVEMENT);
Expand All @@ -254,7 +253,6 @@ static const STEAMSHIM_Event *processEvent(const uint8 *buf, size_t buflen)
switch (type)
{
case SHIMEVENT_BYE:
case SHIMEVENT_PUMPED:
break;

case SHIMEVENT_STATSRECEIVED:
Expand Down
1 change: 0 additions & 1 deletion steamshim_child.h
Expand Up @@ -8,7 +8,6 @@ extern "C" {
typedef enum STEAMSHIM_EventType
{
SHIMEVENT_BYE,
SHIMEVENT_PUMPED,
SHIMEVENT_STATSRECEIVED,
SHIMEVENT_STATSSTORED,
SHIMEVENT_SETACHIEVEMENT,
Expand Down
8 changes: 0 additions & 8 deletions steamshim_parent.cpp
Expand Up @@ -258,7 +258,6 @@ typedef enum ShimCmd
typedef enum ShimEvent
{
SHIMEVENT_BYE,
SHIMEVENT_PUMPED,
SHIMEVENT_STATSRECEIVED,
SHIMEVENT_STATSSTORED,
SHIMEVENT_SETACHIEVEMENT,
Expand Down Expand Up @@ -295,12 +294,6 @@ static inline bool writeBye(PipeType fd)
return write1ByteCmd(fd, SHIMEVENT_BYE);
} // writeBye

static inline bool writePumped(PipeType fd)
{
dbgpipe("Parent sending SHIMEVENT_PUMPED().\n");
return write1ByteCmd(fd, SHIMEVENT_PUMPED);
} // writePumped

static inline bool writeStatsReceived(PipeType fd, const bool okay)
{
dbgpipe("Parent sending SHIMEVENT_STATSRECEIVED(%sokay).\n", okay ? "" : "!");
Expand Down Expand Up @@ -439,7 +432,6 @@ static bool processCommand(const uint8 *buf, unsigned int buflen, PipeType fd)
{
case SHIMCMD_PUMP:
SteamAPI_RunCallbacks();
writePumped(fd);
break;

case SHIMCMD_BYE:
Expand Down
1 change: 0 additions & 1 deletion testapp.c
Expand Up @@ -13,7 +13,6 @@ static void printEvent(const STEAMSHIM_Event *e)
{
#define PRINTGOTEVENT(x) case SHIMEVENT_##x: printf("%s(", #x); break
PRINTGOTEVENT(BYE);
PRINTGOTEVENT(PUMPED);
PRINTGOTEVENT(STATSRECEIVED);
PRINTGOTEVENT(STATSSTORED);
PRINTGOTEVENT(SETACHIEVEMENT);
Expand Down

0 comments on commit 234f039

Please sign in to comment.