From d3cc74bc0d8e75a18ab1f148bce5a36b7f1a2f0e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 21 Aug 2007 21:49:41 +0000 Subject: [PATCH] Tidying. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@405 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../ezgame/server/persist/GameCookieRepository.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/java/com/threerings/ezgame/server/persist/GameCookieRepository.java b/src/java/com/threerings/ezgame/server/persist/GameCookieRepository.java index 9036a7de..c4b37b94 100644 --- a/src/java/com/threerings/ezgame/server/persist/GameCookieRepository.java +++ b/src/java/com/threerings/ezgame/server/persist/GameCookieRepository.java @@ -45,7 +45,6 @@ public class GameCookieRepository extends DepotRepository public byte[] getCookie (int gameId, int userId) throws PersistenceException { - // INDEX: Primary key. GameCookieRecord record = load( GameCookieRecord.class, GameCookieRecord.getKey(gameId, userId)); return record != null ? record.cookie : null; @@ -54,15 +53,12 @@ public class GameCookieRepository extends DepotRepository /** * Set the specified user's game cookie. */ - public void setCookie ( - final int gameId, final int userId, final byte[] cookie) + public void setCookie (int gameId, int userId, byte[] cookie) throws PersistenceException { if (cookie != null) { - // INDEX: Primary key. store(new GameCookieRecord(gameId, userId, cookie)); } else { - // INDEX: Primary key. delete(GameCookieRecord.class, GameCookieRecord.getKey(gameId, userId)); } }