Skip to content

Commit

Permalink
ddl: remove useless code (#40756)
Browse files Browse the repository at this point in the history
close #40755
  • Loading branch information
zimulala authored Jan 29, 2023
1 parent 8b1058d commit 90c5a87
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ddl/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package ddl
import (
"context"
"encoding/json"
"flag"
"fmt"
"runtime"
"strconv"
Expand Down Expand Up @@ -1249,12 +1248,6 @@ var (
RunInGoTest bool
)

func init() {
if flag.Lookup("test.v") != nil || flag.Lookup("check.v") != nil {
RunInGoTest = true
}
}

// GetDropOrTruncateTableInfoFromJobsByStore implements GetDropOrTruncateTableInfoFromJobs
func GetDropOrTruncateTableInfoFromJobsByStore(jobs []*model.Job, gcSafePoint uint64, getTable func(uint64, int64, int64) (*model.TableInfo, error), fn func(*model.Job, *model.TableInfo) (bool, error)) (bool, error) {
for _, job := range jobs {
Expand Down

0 comments on commit 90c5a87

Please sign in to comment.