Skip to content

Commit

Permalink
remove skip native
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Sep 10, 2024
1 parent cadacd3 commit 6b60f32
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
5 changes: 0 additions & 5 deletions thrift/binary_skip.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ func TypeSize(t Type) int {

// Skip skips over the value for the given type.
func (p *BinaryProtocol) Skip(fieldType Type, useNative bool) (err error) {
if false {
// TODO: rm the skip native in the future, no longer use.
// The pure go implementation is better than c
return p.SkipNative(fieldType, MaxSkipDepth)
}
return p.SkipGo(fieldType, MaxSkipDepth)
}

Expand Down
45 changes: 0 additions & 45 deletions thrift/binary_skip_amd64.go

This file was deleted.

2 changes: 0 additions & 2 deletions thrift/binary_skip_other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !amd64

/**
* Copyright 2024 cloudwego Inc.
*
Expand Down

0 comments on commit 6b60f32

Please sign in to comment.