mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-13 09:38:36 +02:00
chore(weed/mq/kafka/schema): remove unused functions (#9088)
This commit is contained in:
1 parent
2c460e0fc9
commit
d292d3640d
2 files changed
-11
No files matched your search
@@ -431,12 +431,6 @@ func convertAvroSimpleType(avroType string) (*schema_pb.Type, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// convertAvroComplexType converts complex Avro types to SeaweedMQ types
|
||||
func convertAvroComplexType(avroType map[string]interface{}) (*schema_pb.Type, error) {
|
||||
fieldType, _, err := convertAvroComplexTypeWithRepeated(avroType)
|
||||
return fieldType, err
|
||||
}
|
||||
|
||||
// convertAvroComplexTypeWithRepeated converts complex Avro types to SeaweedMQ types and returns if it's repeated
|
||||
func convertAvroComplexTypeWithRepeated(avroType map[string]interface{}) (*schema_pb.Type, bool, error) {
|
||||
typeStr, ok := avroType["type"].(string)
|
||||
|
||||
@@ -641,11 +641,6 @@ func recordValueToMapWithAvroContext(recordValue *schema_pb.RecordValue, preserv
|
||||
return result
|
||||
}
|
||||
|
||||
// schemaValueToGoValue converts a schema Value back to a Go value
|
||||
func schemaValueToGoValue(value *schema_pb.Value) interface{} {
|
||||
return schemaValueToGoValueWithAvroContext(value, false)
|
||||
}
|
||||
|
||||
// schemaValueToGoValueWithAvroContext converts a schema Value back to a Go value
|
||||
// with optional Avro union format preservation
|
||||
func schemaValueToGoValueWithAvroContext(value *schema_pb.Value, preserveAvroUnions bool) interface{} {
|
||||
|
||||
Reference in new issue
Block a user