From a8cc920dcf1cba8a06b76e7cc25f28fff383aac0 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 1 Aug 2013 07:49:12 -0700 Subject: [PATCH] new method --- xwords4/relay/dbmgr.cpp | 6 ++++++ xwords4/relay/dbmgr.h | 1 + 2 files changed, 7 insertions(+) diff --git a/xwords4/relay/dbmgr.cpp b/xwords4/relay/dbmgr.cpp index 71914ef8c..cbfe79b3f 100644 --- a/xwords4/relay/dbmgr.cpp +++ b/xwords4/relay/dbmgr.cpp @@ -1042,6 +1042,12 @@ DBMgr::RemoveStoredMessages( vector& idv ) } } +void +DBMgr::RemoveStoredMessage( const int msgID ) +{ + RemoveStoredMessages( &msgID, 1 ); +} + int DBMgr::getCountWhere( const char* table, string& test ) { diff --git a/xwords4/relay/dbmgr.h b/xwords4/relay/dbmgr.h index 2a1995c39..ae79335c2 100644 --- a/xwords4/relay/dbmgr.h +++ b/xwords4/relay/dbmgr.h @@ -121,6 +121,7 @@ class DBMgr { vector& msgs ); void RemoveStoredMessages( const int* msgID, int nMsgIDs ); + void RemoveStoredMessage( const int msgID ); void RemoveStoredMessages( vector& ids ); private: