summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2008-02-11 21:16:26 (UTC)
committer Michael Krelin <hacker@klever.net>2008-02-11 21:16:26 (UTC)
commit947098ee2ab09c340e6822f2bfce7570388c86b4 (patch) (unidiff)
treebcf221248e6196ce39b073866727b55e56c2dd57
parent4cd6cad3b5fda6eb09c8c36efeb9426316f35a37 (diff)
downloadlibopkele-947098ee2ab09c340e6822f2bfce7570388c86b4.zip
libopkele-947098ee2ab09c340e6822f2bfce7570388c86b4.tar.gz
libopkele-947098ee2ab09c340e6822f2bfce7570388c86b4.tar.bz2
removed obsoleted functions in test RP
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--test/RP.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/RP.cc b/test/RP.cc
index 99a792c..813b9b7 100644
--- a/test/RP.cc
+++ b/test/RP.cc
@@ -251,34 +251,6 @@ class example_rp_t : public opkele::prequeue_RP {
251 mutable string _cid; 251 mutable string _cid;
252 mutable string _nid; 252 mutable string _nid;
253 253
254 void set_claimed_id(const string& cid) {
255 assert(as_id>=0);
256 sqlite3_mem_t<char*> S = sqlite3_mprintf(
257 "UPDATE auth_sessions"
258 " SET as_claimed_id=%Q"
259 " WHERE hts_id=%Q and as_id=%ld",
260 cid.c_str(),
261 htc.get_value().c_str(),as_id);
262 db.exec(S);
263 _cid = cid;
264 }
265 const string get_claimed_id() const {
266 assert(as_id>=0);
267 if(_cid.empty()) {
268 sqlite3_mem_t<char*> S = sqlite3_mprintf(
269 "SELECT as_claimed_id"
270 " FROM"
271 " auth_sessions"
272 " WHERE"
273 " hts_id=%Q AND as_id=%ld",
274 htc.get_value().c_str(),as_id);
275 sqlite3_table_t T; int nr,nc;
276 db.get_table(S,T,&nr,&nc);
277 assert(nr==1); assert(nc==1);
278 _cid = T.get(1,0,nc);
279 }
280 return _cid;
281 }
282 void set_normalized_id(const string& nid) { 254 void set_normalized_id(const string& nid) {
283 assert(as_id>=0); 255 assert(as_id>=0);
284 sqlite3_mem_t<char*> S = sqlite3_mprintf( 256 sqlite3_mem_t<char*> S = sqlite3_mprintf(