Skip to content

Commit

Permalink
[wpilib] Deprecate Resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Aug 12, 2024
1 parent b057044 commit 3cb7394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/include/frc/Resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace frc {
* resources; it just tracks which indices were marked in use by Allocate and
* not yet freed by Free.
*/
class Resource {
class [[deprecated]] Resource {
public:
virtual ~Resource() = default;

Expand Down
1 change: 1 addition & 0 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/Resource.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* initialized. This ensures that the program is restartable in memory without having to
* unload/reload.
*/
@Deprecated(forRemoval = true, since = "2025")
public final class Resource {
private static Resource resourceList;
private final boolean[] m_numAllocated;
Expand Down

0 comments on commit 3cb7394

Please sign in to comment.