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

Commit

Permalink
remove unused json vars
Browse files Browse the repository at this point in the history
  • Loading branch information
andersfylling committed Oct 28, 2020
1 parent e3d8ae0 commit 68f320e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions disgord.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ package disgord

import (
"fmt"
"github.com/andersfylling/disgord/json"

"github.com/andersfylling/disgord/internal/util"

Expand All @@ -139,12 +138,6 @@ func LibraryInfo() string {
return fmt.Sprintf("%s %s", constant.Name, constant.Version)
}

// deprecated
var defaultUnmarshaler = json.Unmarshal

// deprecated
var defaultMarshaler = json.Marshal

// Wrapper for github.com/andersfylling/snowflake
// ------------------

Expand Down
2 changes: 1 addition & 1 deletion struct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestTime(t *testing.T) {
T Time `json:"time,omitempty"`
}{}

bBytes, err := defaultMarshaler(b)
bBytes, err := json.Marshal(b)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 68f320e

Please sign in to comment.