Skip to content

Commit

Permalink
[wpiutil] Remove Protobuf.getNested() (wpilibsuite#6812)
Browse files Browse the repository at this point in the history
It was superseded by using FileDescriptor.getDependencies().
  • Loading branch information
KangarooKoala authored Jul 8, 2024
1 parent 6478ba6 commit 3d22eec
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ public Descriptor getDescriptor() {
return ProtobufEllipse2d.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Pose2d.proto};
}

@Override
public ProtobufEllipse2d createMessage() {
return ProtobufEllipse2d.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufPose2d.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Translation2d.proto, Rotation2d.proto};
}

@Override
public ProtobufPose2d createMessage() {
return ProtobufPose2d.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufPose3d.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Translation3d.proto, Rotation3d.proto};
}

@Override
public ProtobufPose3d createMessage() {
return ProtobufPose3d.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ public Descriptor getDescriptor() {
return ProtobufRectangle2d.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Pose2d.proto};
}

@Override
public ProtobufRectangle2d createMessage() {
return ProtobufRectangle2d.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ public Descriptor getDescriptor() {
return ProtobufRotation3d.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Quaternion.proto};
}

@Override
public ProtobufRotation3d createMessage() {
return ProtobufRotation3d.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufTransform2d.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Translation2d.proto, Rotation2d.proto};
}

@Override
public ProtobufTransform2d createMessage() {
return ProtobufTransform2d.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufTransform3d.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Translation3d.proto, Rotation3d.proto};
}

@Override
public ProtobufTransform3d createMessage() {
return ProtobufTransform3d.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufMecanumDriveKinematics.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Translation2d.proto};
}

@Override
public ProtobufMecanumDriveKinematics createMessage() {
return ProtobufMecanumDriveKinematics.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufSwerveModulePosition.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Rotation2d.proto};
}

@Override
public ProtobufSwerveModulePosition createMessage() {
return ProtobufSwerveModulePosition.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufSwerveModuleState.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Rotation2d.proto};
}

@Override
public ProtobufSwerveModuleState createMessage() {
return ProtobufSwerveModuleState.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufTrajectory.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Trajectory.State.proto};
}

@Override
public ProtobufTrajectory createMessage() {
return ProtobufTrajectory.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ public Descriptor getDescriptor() {
return ProtobufTrajectoryState.getDescriptor();
}

@Override
public Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {Pose2d.proto};
}

@Override
public ProtobufTrajectoryState createMessage() {
return ProtobufTrajectoryState.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ default String getTypeString() {
*/
Descriptor getDescriptor();

/**
* Gets the list of protobuf types referenced by this protobuf.
*
* @return list of protobuf types
*/
default Protobuf<?, ?>[] getNested() {
return new Protobuf<?, ?>[] {};
}

/**
* Creates protobuf message.
*
Expand Down

0 comments on commit 3d22eec

Please sign in to comment.