From 9c63e31da6b4cdd762b7b1d273a0be9c6efa03bf Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 8 Dec 2018 03:58:33 -0500 Subject: [PATCH] Remove unnecessary empty lines --- .../java/com/topjohnwu/magisk/database/MagiskDB.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/src/full/java/com/topjohnwu/magisk/database/MagiskDB.java b/app/src/full/java/com/topjohnwu/magisk/database/MagiskDB.java index 3a45ae41f..871e8769f 100644 --- a/app/src/full/java/com/topjohnwu/magisk/database/MagiskDB.java +++ b/app/src/full/java/com/topjohnwu/magisk/database/MagiskDB.java @@ -93,12 +93,10 @@ public class MagiskDB { rawSQL("DELETE FROM %s WHERE package_name=\"%s\"", POLICY_TABLE, pkg); } - public void deletePolicy(int uid) { rawSQL("DELETE FROM %s WHERE uid=%d", POLICY_TABLE, uid); } - public Policy getPolicy(int uid) { List res = SQL("SELECT * FROM %s WHERE uid=%d", POLICY_TABLE, uid); @@ -112,12 +110,10 @@ public class MagiskDB { return null; } - public void updatePolicy(Policy policy) { rawSQL("REPLACE INTO %s %s", POLICY_TABLE, toSQL(policy.getContentValues())); } - public List getPolicyList() { List list = new ArrayList<>(); for (ContentValues values : SQL("SELECT * FROM %s WHERE uid/100000=%d", POLICY_TABLE, Const.USER_ID)) { @@ -131,7 +127,6 @@ public class MagiskDB { return list; } - public List> getLogs() { List> ret = new ArrayList<>(); List list = null; @@ -149,17 +144,14 @@ public class MagiskDB { return ret; } - public void addLog(SuLogEntry log) { rawSQL("INSERT INTO %s %s", LOG_TABLE, toSQL(log.getContentValues())); } - public void clearLogs() { rawSQL("DELETE FROM %s", LOG_TABLE); } - public void setSettings(String key, int value) { ContentValues data = new ContentValues(); data.put("key", key); @@ -167,7 +159,6 @@ public class MagiskDB { rawSQL("REPLACE INTO %s %s", SETTINGS_TABLE, toSQL(data)); } - public int getSettings(String key, int defaultValue) { List res = SQL("SELECT value FROM %s WHERE key=\"%s\"", SETTINGS_TABLE, key); if (res.isEmpty()) @@ -175,7 +166,6 @@ public class MagiskDB { return res.get(0).getAsInteger("value"); } - public void setStrings(String key, String value) { if (value == null) { rawSQL("DELETE FROM %s WHERE key=\"%s\"", STRINGS_TABLE, key); @@ -187,7 +177,6 @@ public class MagiskDB { rawSQL("REPLACE INTO %s %s", STRINGS_TABLE, toSQL(data)); } - public String getStrings(String key, String defaultValue) { List res = SQL("SELECT value FROM %s WHERE key=\"%s\"", STRINGS_TABLE, key); if (res.isEmpty())