Skip to content

Commit

Permalink
Remove getNested()
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Jul 8, 2024
1 parent e448d80 commit e65dc1d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public Descriptor getDescriptor() {
return ProtobufSwerveDriveKinematics.getDescriptor();
}

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

@Override
public ProtobufSwerveDriveKinematics createMessage() {
return ProtobufSwerveDriveKinematics.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ public ProtobufLinearSystem createMessage() {
return ProtobufLinearSystem.newInstance();
}

@Override
public Protobuf<?, ?>[] getNested() {
// We just need to make sure the protobuf definition gets published, so the actual parameters
// don't matter
return new Protobuf<?, ?>[] {Matrix.getProto(Nat.N1(), Nat.N1())};
}

@Override
public LinearSystem<States, Inputs, Outputs> unpack(ProtobufLinearSystem msg) {
if (msg.getNumStates() != m_states.getNum()
Expand Down

0 comments on commit e65dc1d

Please sign in to comment.