Skip to content

Commit

Permalink
[Intents] Clean up code. (#22152)
Browse files Browse the repository at this point in the history
* Clean up code that checks OS versions when the version checked for is earlier
  than the earliest OS version we support - in which case the check is
  redundant, and we can remove a lot of dead code.
* Remove !NET code.
* Enable nullability everywhere.
* Add missing availability attributes.
* Fix a few misc issues found by our tests.
* Use BindAs in a few places to avoid manual code.
  • Loading branch information
rolfbjarne authored Feb 12, 2025
1 parent 63a30ac commit 4687bcb
Show file tree
Hide file tree
Showing 47 changed files with 141 additions and 2,119 deletions.
39 changes: 0 additions & 39 deletions src/Intents/INBillTypeResolutionResult.cs

This file was deleted.

2 changes: 2 additions & 0 deletions src/Intents/INCallRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
using Foundation;
using ObjCRuntime;

#nullable enable

namespace Intents {
public partial class INCallRecord {

Expand Down
43 changes: 0 additions & 43 deletions src/Intents/INCallRecordTypeResolutionResult.cs

This file was deleted.

40 changes: 0 additions & 40 deletions src/Intents/INCarAirCirculationModeResolutionResult.cs

This file was deleted.

60 changes: 0 additions & 60 deletions src/Intents/INCarAirCirculationModeResolutionResult.watchOS.cs

This file was deleted.

39 changes: 0 additions & 39 deletions src/Intents/INCarAudioSourceResolutionResult.cs

This file was deleted.

56 changes: 0 additions & 56 deletions src/Intents/INCarAudioSourceResolutionResult.watchOS.cs

This file was deleted.

39 changes: 0 additions & 39 deletions src/Intents/INCarDefrosterResolutionResult.cs

This file was deleted.

55 changes: 0 additions & 55 deletions src/Intents/INCarDefrosterResolutionResult.watchOS.cs

This file was deleted.

Loading

10 comments on commit 4687bcb

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.