Skip to content

Commit

Permalink
minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiu Yue Chun committed Jun 9, 2015
1 parent b296db7 commit 362871c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/com/loopbook/cuhk_loopbook/CheckSched.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import java.util.Calendar;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.os.SystemClock;
import android.content.Intent;
import android.widget.Toast;
import android.content.Context;

import android.util.Log;
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/loopbook/cuhk_loopbook/DataIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ public class DataIO {
static String filename = "books.html";

public static Element getData(Context context)
throws java.io.IOException, java.text.ParseException {
throws IOException, java.text.ParseException {
return LibConn.isConnectable() ?
refreshStoredData(context) :
getStoredData(context);
}

public static Element refreshStoredData(Context c)
throws java.io.IOException, java.text.ParseException {
throws IOException, java.text.ParseException {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(c);
String user_id = prefs.getString("user_id", "");
String user_passwd = prefs.getString("user_passwd", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
import android.content.Intent;
import android.content.Context;

import com.loopbook.cuhk_loopbook.LibConn;
import com.loopbook.cuhk_loopbook.DataIO;
import org.jsoup.nodes.Element;


Expand Down

0 comments on commit 362871c

Please sign in to comment.