Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wpiutil] Remove Protobuf.getNested() #6812

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading