]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/engine/HtmlEntry.java
Apply result of "code cleanup" run.
[Dictionary.git] / src / com / hughes / android / dictionary / engine / HtmlEntry.java
index 24424aa21c8bc7d6161f77d5d3299e7e11975da9..ca582073fe3eafe8330ab6f46018d1ca4d20a0a9 100644 (file)
@@ -1,9 +1,6 @@
 
 package com.hughes.android.dictionary.engine;
 
-import android.content.Intent;
-import android.util.Log;
-
 import com.hughes.android.dictionary.C;
 import com.hughes.util.StringUtil;
 import com.hughes.util.raf.RAFListSerializer;
@@ -84,7 +81,7 @@ public class HtmlEntry extends AbstractEntry implements RAFSerializable<HtmlEntr
         public void write(RandomAccessFile raf, HtmlEntry t) throws IOException {
             t.write(raf);
         }
-    };
+    }
 
     public String getRawText(final boolean compact) {
         return title + ":\n" + getHtml();
@@ -179,16 +176,6 @@ public class HtmlEntry extends AbstractEntry implements RAFSerializable<HtmlEntr
         return url.startsWith("q://d?");
     }
 
-    public static void quickdicUrlToIntent(final String url, final Intent intent) {
-        int firstColon = url.indexOf("?");
-        if (firstColon == -1)
-            return;
-        int secondColon = url.indexOf("&", firstColon + 1);
-        if (secondColon == -1)
-            return;
-        intent.putExtra(C.SEARCH_TOKEN, StringUtil.decodeFromUrl(url.substring(secondColon + 1)));
-    }
-
     // --------------------------------------------------------------------
 
     public static final class LazyHtmlLoader {