Merge branch 'prefs_interface' into altosdroid
[fw/altos] / altosui / AltosSiteMapCache.java
index cfad52a9d5e3cbe7ba631c77725192afb126ed9a..617ed4a9a3331193271b03f4dd4b56b6eb406eb3 100644 (file)
 
 package altosui;
 
-import java.awt.*;
-import java.awt.image.*;
-import java.awt.event.*;
 import javax.swing.*;
 import javax.imageio.ImageIO;
-import javax.swing.table.*;
 import java.io.*;
-import java.util.*;
-import java.text.*;
-import java.util.prefs.*;
 import java.net.URL;
 import java.net.URLConnection;
 
@@ -37,7 +30,6 @@ public class AltosSiteMapCache extends JLabel {
                try {
                        u = new URL(url);
                } catch (java.net.MalformedURLException e) {
-                       System.out.printf("Malformed URL '%s'\n", url);
                        return false;
                }
 
@@ -58,12 +50,9 @@ public class AltosSiteMapCache extends JLabel {
                        in.close();
 
                        if (offset != contentLength) {
-                               System.out.printf("Bad length %d != %d\n",
-                                                 offset, contentLength);
                                return false;
                        }
                } catch (IOException e) {
-                       System.out.printf("IO exception reading URL\n");
                        return false;
                }
 
@@ -73,13 +62,11 @@ public class AltosSiteMapCache extends JLabel {
                        out.flush();
                        out.close();
                } catch (FileNotFoundException e) {
-                       System.out.printf("Can't create file\n");
                        return false;
                } catch (IOException e) {
                        if (file.exists()) {
                                file.delete();
                        }
-                       System.out.printf("IO exception writing file\n");
                        return false;
                }
                return true;