Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
remove unused tel code
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 15, 2021
1 parent 817c03c commit c84e822
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 4 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ func WriteConfig(filename string, cfg *config.Config) error {
}

func saveConfig(cfg *config.Config) error {
log.Debugln("[textsecure] saving config")

log.Debugln("[textsecure] saving config", cfg.Tel)
err := WriteConfig(configFile, cfg)
if err != nil {
log.Errorln("[textsecure] failed to save config", err)
return err
}
return nil
Expand All @@ -71,6 +73,7 @@ func saveConfig(cfg *config.Config) error {
// loadConfig gets the config via the client and makes sure
// that for unset values sane defaults are used
func loadConfig() (*config.Config, error) {
log.Debugln("[textsecure] loading config")
cfg, err := client.GetConfig()

if err != nil {
Expand Down
6 changes: 0 additions & 6 deletions textsecure.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,6 @@ func registerDevice() error {
return err
}
rootCa.SetupCA(config.ConfigFile.RootCA)
var tel string
var uuid string

if config.ConfigFile.CrayfishSupport {
client.GetConfig()
Expand Down Expand Up @@ -450,10 +448,6 @@ func registerDevice() error {
if err != nil {
return err
}
if config.ConfigFile.CrayfishSupport && config.ConfigFile.Tel == "" {
config.ConfigFile.Tel = tel
config.ConfigFile.UUID = uuid
}
config.ConfigFile.ProfileKey = profiles.GenerateProfileKey()
// config.ConfigFile = checkUUID(config.ConfigFile)
saveConfig(config.ConfigFile)
Expand Down

0 comments on commit c84e822

Please sign in to comment.