删除无用代码

This commit is contained in:
kehaoyuan
2018-11-14 10:12:06 +08:00
parent 11963ef040
commit d52bd00ab9
17 changed files with 0 additions and 881 deletions

View File

@ -4,14 +4,10 @@ import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.support.v4.util.ArrayMap;
import com.gh.gamecenter.db.info.AppRunTimeInfo;
import com.gh.gamecenter.db.info.AppTrafficInfo;
import com.gh.gamecenter.db.info.AskSearchHistoryInfo;
import com.gh.gamecenter.db.info.DataCollectionInfo;
import com.gh.gamecenter.db.info.FilterInfo;
import com.gh.gamecenter.db.info.GameInfo;
import com.gh.gamecenter.db.info.GameTrendsInfo;
import com.gh.gamecenter.db.info.InstallInfo;
import com.gh.gamecenter.db.info.PackageInfo;
import com.gh.gamecenter.db.info.SearchHistoryInfo;
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper;
@ -56,13 +52,9 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
public void onCreate(SQLiteDatabase database, ConnectionSource connectionSource) {
try {
Utils.log("DatabaseHelper onCreate");
TableUtils.createTable(connectionSource, InstallInfo.class);
TableUtils.createTable(connectionSource, SearchHistoryInfo.class);
TableUtils.createTable(connectionSource, GameInfo.class);
TableUtils.createTable(connectionSource, DataCollectionInfo.class);
TableUtils.createTable(connectionSource, AppRunTimeInfo.class);
TableUtils.createTable(connectionSource, PackageInfo.class);
TableUtils.createTable(connectionSource, AppTrafficInfo.class);
TableUtils.createTable(connectionSource, GameTrendsInfo.class);
TableUtils.createTable(connectionSource, AskSearchHistoryInfo.class);
} catch (SQLException e) {
@ -74,14 +66,10 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {
try {
Utils.log("DatabaseHelper onUpgrade");
TableUtils.dropTable(connectionSource, InstallInfo.class, true);
TableUtils.dropTable(connectionSource, SearchHistoryInfo.class, true);
TableUtils.dropTable(connectionSource, GameInfo.class, true);
TableUtils.dropTable(connectionSource, FilterInfo.class, true);
TableUtils.dropTable(connectionSource, DataCollectionInfo.class, true);
TableUtils.dropTable(connectionSource, AppRunTimeInfo.class, true);
TableUtils.dropTable(connectionSource, PackageInfo.class, true);
TableUtils.dropTable(connectionSource, AppTrafficInfo.class, true);
TableUtils.dropTable(connectionSource, GameTrendsInfo.class, true);
TableUtils.dropTable(connectionSource, AskSearchHistoryInfo.class, true);
onCreate(database, connectionSource);