Merge branch 'DAO' of https://source.jalview.org/git/proteocache into DAO
[proteocache.git] / datadb / compbio / cassandra / JpredParserLocalFile.java
index e2e5dc9..c89fe59 100644 (file)
@@ -2,11 +2,8 @@ package compbio.cassandra;
 
 import java.io.BufferedReader;
 import java.io.File;
-import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.InputStreamReader;
-import java.net.HttpURLConnection;
-import java.net.MalformedURLException;
 import java.io.FileInputStream;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
@@ -19,7 +16,6 @@ import compbio.data.sequence.FastaReader;
 import compbio.data.sequence.FastaSequence;
 
 public class JpredParserLocalFile implements JpredParser {
-       private CassandraWriter cw = new CassandraWriter();
        private String dirprefix;
 
        public void setSource(String newsourceprefix) {
@@ -75,8 +71,6 @@ public class JpredParserLocalFile implements JpredParser {
                        if (in.matches(date + ":(.*)jp_[^\\s]+")) {
                                String[] table = in.split("\\s+");
                                String starttime = table[0];
-                               String finishtime = table[1];
-                               String ip = table[2];
                                String id = table[table.length - 1];
                                totalcount++;
                                String confilename = dirprefix + "/" + id + "/" + id + ".concise";
@@ -99,10 +93,8 @@ public class JpredParserLocalFile implements JpredParser {
                                                } else {
                                                        SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd");
                                                        String dateInString1 = starttime.substring(0, starttime.indexOf(":"));
-                                                       long insertdate = 0;
                                                        try {
                                                                Date dat = formatter.parse(dateInString1);
-                                                               insertdate = dat.getTime();
                                                        } catch (ParseException e) {
                                                                e.printStackTrace();
                                                        }