diff --git a/bt2qbt.go b/bt2qbt.go index d75cdd1..d39456b 100644 --- a/bt2qbt.go +++ b/bt2qbt.go @@ -14,7 +14,6 @@ import ( "io/ioutil" "log" "os" - "os/exec" "os/user" "regexp" "runtime" @@ -253,24 +252,6 @@ func logic(key string, value map[string]interface{}, flags *Flags, chans *Channe return nil } -func openBrowser(url string) { - var err error - - switch runtime.GOOS { - case "linux": - err = exec.Command("xdg-open", url).Start() - case "windows": - err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() - case "darwin": - err = exec.Command("open", url).Start() - default: - err = fmt.Errorf("unsupported platform") - } - if err != nil { - log.Fatal(err) - } -} - func main() { flags := Flags{PathSeparator: string(os.PathSeparator)} sep := string(os.PathSeparator)