Skip to content

Commit 8327f7a

Browse files
committed
[connector,exporter,receiver,extension,processor] remove deprecated funcs/structs
Finishing CreateSettings rename. Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
1 parent aa31b27 commit 8327f7a

File tree

10 files changed

+0
-60
lines changed

10 files changed

+0
-60
lines changed

connector/connector.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ type Logs interface {
6666
consumer.Logs
6767
}
6868

69-
// CreateSettings configures Connector creators.
70-
//
71-
// Deprecated: [v0.103.0] Use connector.Settings instead.
72-
type CreateSettings = Settings
73-
7469
// Settings configures Connector creators.
7570
type Settings struct {
7671
// ID returns the ID of the component that will be created.

connector/connectortest/connector.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ import (
1717

1818
var nopType = component.MustNewType("nop")
1919

20-
// NewNopCreateSettings returns a new nop settings for Create* functions.
21-
//
22-
// Deprecated: [v0.103.0] Use connectortest.NewNopSettings instead.
23-
func NewNopCreateSettings() connector.Settings {
24-
return NewNopSettings()
25-
}
26-
2720
// NewNopSettings returns a new nop settings for Create* functions.
2821
func NewNopSettings() connector.Settings {
2922
return connector.Settings{

exporter/exporter.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ type Logs interface {
3131
consumer.Logs
3232
}
3333

34-
// CreateSettings configures Exporter creators.
35-
//
36-
// Deprecated: [v0.103.0] Use exporter.Settings instead.
37-
type CreateSettings = Settings
38-
3934
// Settings configures exporter creators.
4035
type Settings struct {
4136
// ID returns the ID of the component that will be created.

exporter/exportertest/nop_exporter.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ import (
1616

1717
var nopType = component.MustNewType("nop")
1818

19-
// NewNopCreateSettings returns a new nop settings for Create*Exporter functions.
20-
//
21-
// Deprecated: [v0.103.0] Use exportertest.NewNopSettings instead.
22-
func NewNopCreateSettings() exporter.Settings {
23-
return NewNopSettings()
24-
}
25-
2619
// NewNopSettings returns a new nop settings for Create*Exporter functions.
2720
func NewNopSettings() exporter.Settings {
2821
return exporter.Settings{

extension/extension.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ type StatusWatcher interface {
6262
ComponentStatusChanged(source *component.InstanceID, event *component.StatusEvent)
6363
}
6464

65-
// CreateSettings is passed to Factory.Create(...) function.
66-
//
67-
// Deprecated: [v0.103.0] Use extension.Settings instead.
68-
type CreateSettings = Settings
69-
7065
// Settings is passed to Factory.Create(...) function.
7166
type Settings struct {
7267
// ID returns the ID of the component that will be created.

extension/extensiontest/nop_extension.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ import (
1515

1616
var nopType = component.MustNewType("nop")
1717

18-
// NewNopCreateSettings returns a new nop settings for extension.Factory Create* functions.
19-
//
20-
// Deprecated: [v0.103.0] Use extensiontest.NewNopSettings instead.
21-
func NewNopCreateSettings() extension.Settings {
22-
return NewNopSettings()
23-
}
24-
2518
// NewNopSettings returns a new nop settings for extension.Factory Create* functions.
2619
func NewNopSettings() extension.Settings {
2720
return extension.Settings{

processor/processor.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ type Logs interface {
3636
consumer.Logs
3737
}
3838

39-
// CreateSettings is passed to Create* functions in Factory.
40-
//
41-
// Deprecated: [v0.103.0] Use processor.Settings instead.
42-
type CreateSettings = Settings
43-
4439
// Settings is passed to Create* functions in Factory.
4540
type Settings struct {
4641
// ID returns the ID of the component that will be created.

processor/processortest/nop_processor.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ import (
1717

1818
var nopType = component.MustNewType("nop")
1919

20-
// NewNopCreateSettings returns a new nop settings for Create*Processor functions.
21-
//
22-
// Deprecated: [v0.103.0] Use processortest.NewNopSettings instead.
23-
func NewNopCreateSettings() processor.Settings {
24-
return NewNopSettings()
25-
}
26-
2720
// NewNopSettings returns a new nop settings for Create*Processor functions.
2821
func NewNopSettings() processor.Settings {
2922
return processor.Settings{

receiver/receiver.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ type Logs interface {
4545
component.Component
4646
}
4747

48-
// CreateSettings configures Receiver creators.
49-
//
50-
// Deprecated: [v0.103.0] Use receiver.Settings instead.
51-
type CreateSettings = Settings
52-
5348
// Settings configures Receiver creators.
5449
type Settings struct {
5550
// ID returns the ID of the component that will be created.

receiver/receivertest/nop_receiver.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ import (
1616

1717
var defaultComponentType = component.MustNewType("nop")
1818

19-
// NewNopCreateSettings returns a new nop settings for Create*Receiver functions.
20-
//
21-
// Deprecated: [v0.103.0] Use receivertest.NewNopSettings instead.
22-
func NewNopCreateSettings() receiver.Settings {
23-
return NewNopSettings()
24-
}
25-
2619
// NewNopSettings returns a new nop settings for Create*Receiver functions.
2720
func NewNopSettings() receiver.Settings {
2821
return receiver.Settings{

0 commit comments

Comments
 (0)