Skip to content

Commit

Permalink
Removed defunct code.
Browse files Browse the repository at this point in the history
  • Loading branch information
cathyjf committed Oct 24, 2010
1 parent 42d4366 commit 7005895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/database/Authenticator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ bool VBulletinAuthenticator::finishAuthentication(ScopedConnection &conn,
const int foreignId = result[0][1];

Query q2 = conn->query(
"INSERT INTO users (name, foreign_id, level, activity, ip) "
"VALUES (%0q, %1q, 0, now(), %2q) "
"INSERT INTO users (name, foreign_id, activity, ip) "
"VALUES (%0q, %1q, now(), %2q) "
"ON DUPLICATE KEY UPDATE name=%0q, activity=now()"
);
q2.parse();
Expand Down
9 changes: 0 additions & 9 deletions src/database/DatabaseRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ const double SYSTEM_CONSTANT = 1.2;
const char *TABLE_STATS_PREFIX = "ladder_stats_";
const char *TABLE_MATCHES_PREFIX = "ladder_matches_";

// MySQL users table
sql_create_6(users, 1, 6,
sql_int, id,
sql_varchar, name,
sql_varchar, password,
sql_int, level,
sql_datetime, activity, // last activity
sql_varchar, ip);

class ShoddyConnectionPool : public ConnectionPool {
public:
ShoddyConnectionPool() {
Expand Down

0 comments on commit 7005895

Please sign in to comment.