| Index: mojo/public/cpp/bindings/lib/validation_util.cc
|
| diff --git a/mojo/public/cpp/bindings/lib/validation_util.cc b/mojo/public/cpp/bindings/lib/validation_util.cc
|
| index 944c6541323bdb5aa36edc5268bd9d6bc19e10c0..9675afe8e0a851ec1403ffa13b2c01d0a1eb2106 100644
|
| --- a/mojo/public/cpp/bindings/lib/validation_util.cc
|
| +++ b/mojo/public/cpp/bindings/lib/validation_util.cc
|
| @@ -100,38 +100,6 @@ bool ValidateMessageIsResponse(const Message* message,
|
| return true;
|
| }
|
|
|
| -bool ValidateControlRequest(const Message* message,
|
| - ValidationContext* validation_context) {
|
| - switch (message->header()->name) {
|
| - case interface_control::kRunMessageId:
|
| - return ValidateMessageIsRequestExpectingResponse(message,
|
| - validation_context) &&
|
| - ValidateMessagePayload<
|
| - interface_control::internal::RunMessageParams_Data>(
|
| - message, validation_context);
|
| - case interface_control::kRunOrClosePipeMessageId:
|
| - return ValidateMessageIsRequestWithoutResponse(message,
|
| - validation_context) &&
|
| - ValidateMessagePayload<
|
| - interface_control::internal::RunOrClosePipeMessageParams_Data>(
|
| - message, validation_context);
|
| - }
|
| - return false;
|
| -}
|
| -
|
| -bool ValidateControlResponse(const Message* message,
|
| - ValidationContext* validation_context) {
|
| - if (!ValidateMessageIsResponse(message, validation_context))
|
| - return false;
|
| - switch (message->header()->name) {
|
| - case interface_control::kRunMessageId:
|
| - return ValidateMessagePayload<
|
| - interface_control::internal::RunResponseMessageParams_Data>(
|
| - message, validation_context);
|
| - }
|
| - return false;
|
| -}
|
| -
|
| bool IsHandleOrInterfaceValid(const AssociatedInterface_Data& input) {
|
| return IsValidInterfaceId(input.interface_id);
|
| }
|
|
|