@@ -148,17 +148,6 @@ var (
148148 },
149149
150150 // Deprecated commands kept for compatibility
151- {
152- Hidden : true , // deprecated: use `sip trunk create`
153- Name : "create-sip-trunk" ,
154- Usage : "Create a SIP Trunk" ,
155- Action : createSIPTrunkLegacy ,
156- Category : sipCategory ,
157- Flags : []cli.Flag {
158- //lint:ignore SA1019 we still support it
159- RequestFlag [livekit.CreateSIPTrunkRequest ](),
160- },
161- },
162151 {
163152 Hidden : true , // deprecated: use `sip trunk list`
164153 Name : "list-sip-trunk" ,
@@ -232,15 +221,6 @@ func createSIPClient(cmd *cli.Command) (*lksdk.SIPClient, error) {
232221 return lksdk .NewSIPClient (pc .URL , pc .APIKey , pc .APISecret , withDefaultClientOpts (pc )... ), nil
233222}
234223
235- func createSIPTrunkLegacy (ctx context.Context , cmd * cli.Command ) error {
236- cli , err := createSIPClient (cmd )
237- if err != nil {
238- return err
239- }
240- //lint:ignore SA1019 we still support it
241- return createAndPrintLegacy (ctx , cmd , cli .CreateSIPTrunk , printSIPTrunkID )
242- }
243-
244224func createSIPInboundTrunk (ctx context.Context , cmd * cli.Command ) error {
245225 cli , err := createSIPClient (cmd )
246226 if err != nil {
0 commit comments