Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Drop old workaround required for device migration
  • Loading branch information
Bernd Wachter committed Dec 23, 2014
1 parent 1994ce9 commit 7da8edf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions libssu/ssucoreconfig.cpp
Expand Up @@ -63,17 +63,6 @@ int SsuCoreConfig::deviceMode(){

QString SsuCoreConfig::domain(bool pretty){
if (contains("domain")){
// this is a workaround for upgrading existing devices to
// Jolla sales setup. it should be removed in a few weeks
// this should keep devices with old default domain in rnd
// mode using the proper domain
if (contains("default-rnd-domain") &&
isRegistered() &&
value("domain").toString() == "sales" &&
(deviceMode() & Ssu::RndMode) == Ssu::RndMode)
setValue("domain", value("default-rnd-domain"));
//

if (pretty)
return value("domain").toString().replace(":", "-");
else
Expand Down

0 comments on commit 7da8edf

Please sign in to comment.