Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerTorres committed Feb 21, 2024
1 parent 5933926 commit 3caac9f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/macros/macros.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package macros

import (
"errors"
"fmt"
"math"
"strings"
Expand All @@ -10,18 +9,6 @@ import (
"github.com/grafana/sqlds/v2"
)

var (
ErrorNoArgumentsToMacro = errors.New("expected minimum of 1 argument. But no argument found")
ErrorInsufficientArgumentsToMacro = errors.New("expected number of arguments not matching")
)

type timeQueryType string

const (
timeQueryTypeFrom timeQueryType = "from"
timeQueryTypeTo timeQueryType = "to"
)

// Converts a time.Time to a Date
func timeToDate(t time.Time) string {
return fmt.Sprintf("toDate('%s')", t.Format("2006-01-02"))
Expand Down

0 comments on commit 3caac9f

Please sign in to comment.