summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-05-16 09:06:52 -0700
committerShawn O. Pearce <sop@google.com>2009-05-16 10:51:57 -0700
commit3511f86ae418729b0c3800a38d251bc0ee82db6a (patch)
tree517cdc9aefdfc47d3daa35f04eff3c0526457d51
parent7ce27a1aaf61cfc3de9d34e5d8c8284ca32b25e5 (diff)
Remove dead LoginService, SignInResult classes
These were effectively killed when we changed the OpenID login process to use the main window, rather than an iframe. Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--src/main/java/com/google/gerrit/client/account/LoginService.java30
-rw-r--r--src/main/java/com/google/gerrit/client/account/SignInResult.java48
-rw-r--r--src/main/java/com/google/gerrit/client/account/Util.java3
3 files changed, 0 insertions, 81 deletions
diff --git a/src/main/java/com/google/gerrit/client/account/LoginService.java b/src/main/java/com/google/gerrit/client/account/LoginService.java
deleted file mode 100644
index 1cb2389532..0000000000
--- a/src/main/java/com/google/gerrit/client/account/LoginService.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (C) 2008 The Android Open Source Project
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.google.gerrit.client.account;
-
-import com.google.gwt.user.client.rpc.AsyncCallback;
-import com.google.gwtjsonrpc.client.CallbackHandle;
-import com.google.gwtjsonrpc.client.RemoteJsonService;
-
-/** Works with the LoginServlet to connect to accounts. */
-public interface LoginService extends RemoteJsonService {
- /**
- * Create a callback for LoginServlet to call post sign in.
- * <p>
- * The LoginResult.getStatus() is {@link SignInResult.Status#CANCEL} is null
- * if the sign in was aborted by the user (or failed too many times).
- */
- CallbackHandle<SignInResult> signIn(AsyncCallback<SignInResult> c);
-}
diff --git a/src/main/java/com/google/gerrit/client/account/SignInResult.java b/src/main/java/com/google/gerrit/client/account/SignInResult.java
deleted file mode 100644
index 79b2f88106..0000000000
--- a/src/main/java/com/google/gerrit/client/account/SignInResult.java
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (C) 2008 The Android Open Source Project
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.google.gerrit.client.account;
-
-
-/** Result from a sign-in attempt via the LoginServlet. */
-public class SignInResult {
- public static enum Status {
- /** The user canceled the sign-in and wasn't able to complete it */
- CANCEL,
-
- /** The sign-in was successful and we have the account data */
- SUCCESS;
- }
-
- /** Singleton representing {@link Status#CANCEL}. */
- public static final SignInResult CANCEL = new SignInResult(Status.CANCEL);
-
- /** Singleton representing {@link Status#CANCEL}. */
- public static final SignInResult SUCCESS = new SignInResult(Status.SUCCESS);
-
- protected Status status;
-
- protected SignInResult() {
- }
-
- /** Create a new result. */
- public SignInResult(final Status s) {
- status = s;
- }
-
- /** The status of the login attempt */
- public Status getStatus() {
- return status;
- }
-}
diff --git a/src/main/java/com/google/gerrit/client/account/Util.java b/src/main/java/com/google/gerrit/client/account/Util.java
index 705306d404..0f50b0e9c9 100644
--- a/src/main/java/com/google/gerrit/client/account/Util.java
+++ b/src/main/java/com/google/gerrit/client/account/Util.java
@@ -22,7 +22,6 @@ public class Util {
public static final AccountMessages M = GWT.create(AccountMessages.class);
public static final AccountService ACCOUNT_SVC;
public static final AccountSecurity ACCOUNT_SEC;
- public static final LoginService LOGIN_SVC;
static {
ACCOUNT_SVC = GWT.create(AccountService.class);
@@ -30,7 +29,5 @@ public class Util {
ACCOUNT_SEC = GWT.create(AccountSecurity.class);
JsonUtil.bind(ACCOUNT_SEC, "rpc/AccountSecurity");
-
- LOGIN_SVC = GWT.create(LoginService.class);
}
}