summaryrefslogtreecommitdiff
path: root/src/lq
diff options
context:
space:
mode:
Diffstat (limited to 'src/lq')
-rw-r--r--src/lq/AddAdmin.java4
-rw-r--r--src/lq/Administrator.java1
-rw-r--r--src/lq/ImportQuotes.java3
-rw-r--r--src/lq/Quote.java2
-rw-r--r--src/lq/Redirect.java23
-rw-r--r--src/lq/Test.java7
-rw-r--r--src/lq/ViewQuotes.java14
7 files changed, 1 insertions, 53 deletions
diff --git a/src/lq/AddAdmin.java b/src/lq/AddAdmin.java
index 15290f7..d50e3d0 100644
--- a/src/lq/AddAdmin.java
+++ b/src/lq/AddAdmin.java
@@ -1,11 +1,7 @@
package lq;
import java.io.IOException;
-import java.text.ParseException;
-import java.util.Date;
-import java.util.List;
import javax.jdo.PersistenceManager;
-import javax.jdo.Query;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
diff --git a/src/lq/Administrator.java b/src/lq/Administrator.java
index 8ba2957..3f12278 100644
--- a/src/lq/Administrator.java
+++ b/src/lq/Administrator.java
@@ -2,7 +2,6 @@ package lq;
import com.google.appengine.api.datastore.Key;
import javax.jdo.annotations.IdGeneratorStrategy;
-import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
diff --git a/src/lq/ImportQuotes.java b/src/lq/ImportQuotes.java
index fc365a0..db0a633 100644
--- a/src/lq/ImportQuotes.java
+++ b/src/lq/ImportQuotes.java
@@ -2,7 +2,6 @@ package lq;
import java.io.File;
import java.io.IOException;
-import java.util.Scanner;
import java.util.HashMap;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
@@ -53,7 +52,7 @@ public class ImportQuotes extends HttpServlet {
try {
String importIdString = req.getParameter("importId");
if (importIdString == null) {
- // uploadInChunks(pm, votes, 100);
+ uploadInChunks(pm, votes, 100);
uploadInChunks(pm, quotes, 100);
resp.getWriter().println("Import finished.");
}
diff --git a/src/lq/Quote.java b/src/lq/Quote.java
index c859f25..9d399fb 100644
--- a/src/lq/Quote.java
+++ b/src/lq/Quote.java
@@ -5,9 +5,7 @@ import com.google.appengine.api.datastore.Text;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
-import javax.jdo.annotations.Embedded;
import javax.jdo.annotations.IdGeneratorStrategy;
-import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
diff --git a/src/lq/Redirect.java b/src/lq/Redirect.java
deleted file mode 100644
index b3414bb..0000000
--- a/src/lq/Redirect.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package lq;
-
-import java.io.IOException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-
-public class Redirect extends HttpServlet {
- private String destination;
-
- @Override
- public void init(ServletConfig config) throws ServletException {
- destination = config.getInitParameter("destination");
- }
-
- @Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp)
- throws IOException {
- resp.sendRedirect(destination);
- }
-}
diff --git a/src/lq/Test.java b/src/lq/Test.java
deleted file mode 100644
index e294b7f..0000000
--- a/src/lq/Test.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package lq;
-
-public class Test {
- public static final String test() {
- return "Hello from Test";
- }
-}
diff --git a/src/lq/ViewQuotes.java b/src/lq/ViewQuotes.java
deleted file mode 100644
index cc03f51..0000000
--- a/src/lq/ViewQuotes.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package lq;
-
-import java.io.IOException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-public class ViewQuotes extends HttpServlet {
- public void doGet(HttpServletRequest req, HttpServletResponse resp)
- throws IOException {
- resp.setContentType("text/plain");
- resp.getWriter().println("Hello, World!");
- }
-}