Skip to content

Commit

Permalink
Remove flag workaround
Browse files Browse the repository at this point in the history
Not needed anymore since Fiber v1.12.5
  • Loading branch information
doingodswork committed Jul 11, 2020
1 parent 38ed585 commit 6cc4287
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 87 deletions.
6 changes: 0 additions & 6 deletions addon.go
Expand Up @@ -2,7 +2,6 @@ package stremio

import (
"errors"
"flag"
"fmt"
netpprof "net/http/pprof"
"os"
Expand Down Expand Up @@ -56,11 +55,6 @@ type Addon struct {
userDataType reflect.Type
}

func init() {
// We need to overwrite the usage of the default FlagSet to hide the flags defined by Fiber
flag.CommandLine.Usage = usage
}

// NewAddon creates a new Addon object that can be started with Run().
// A proper manifest must be supplied, but manifestCallback and all but one handler can be nil in case you only want to handle specific requests and opts can be the zero value of Options.
func NewAddon(manifest Manifest, catalogHandlers map[string]CatalogHandler, streamHandlers map[string]StreamHandler, opts Options) (*Addon, error) {
Expand Down
81 changes: 0 additions & 81 deletions flags.go

This file was deleted.

0 comments on commit 6cc4287

Please sign in to comment.