diff --git a/src/main/scala/com/github/shadowsocks/Shadowsocks.scala b/src/main/scala/com/github/shadowsocks/Shadowsocks.scala index 5c6a6e0d..ccab7de1 100644 --- a/src/main/scala/com/github/shadowsocks/Shadowsocks.scala +++ b/src/main/scala/com/github/shadowsocks/Shadowsocks.scala @@ -350,11 +350,6 @@ class Shadowsocks super.onCreate(savedInstanceState) - // Update the profile - if (!ShadowsocksApplication.settings.getBoolean(ShadowsocksApplication.getVersionName, false)) { - currentProfile = ShadowsocksApplication.profileManager.create() - } - // Initialize the profile currentProfile = { ShadowsocksApplication.currentProfile getOrElse currentProfile diff --git a/src/main/scala/com/github/shadowsocks/database/ProfileManager.scala b/src/main/scala/com/github/shadowsocks/database/ProfileManager.scala index 24da9121..2370153f 100644 --- a/src/main/scala/com/github/shadowsocks/database/ProfileManager.scala +++ b/src/main/scala/com/github/shadowsocks/database/ProfileManager.scala @@ -163,10 +163,4 @@ class ProfileManager(settings: SharedPreferences, dbHelper: DBHelper) { updateProfile(profile) profile } - - def create(): Profile = { - val profile = loadFromPreferences - createOrUpdateProfile(profile) - profile - } }