Index: third_party/mojo/src/mojo/public/dart/src/struct.dart |
diff --git a/third_party/mojo/src/mojo/public/dart/src/struct.dart b/third_party/mojo/src/mojo/public/dart/src/struct.dart |
deleted file mode 100644 |
index d4ac365915939232b04bf929e0570449da79ced3..0000000000000000000000000000000000000000 |
--- a/third_party/mojo/src/mojo/public/dart/src/struct.dart |
+++ /dev/null |
@@ -1,26 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-part of bindings; |
- |
-abstract class Struct { |
- final int encodedSize; |
- |
- Struct(this.encodedSize); |
- |
- void encode(Encoder encoder); |
- |
- Message serialize() { |
- var encoder = new Encoder(encodedSize); |
- encode(encoder); |
- return encoder.message; |
- } |
- |
- ServiceMessage serializeWithHeader(MessageHeader header) { |
- var encoder = new Encoder(encodedSize + header.size); |
- header.encode(encoder); |
- encode(encoder); |
- return new ServiceMessage(encoder.message, header); |
- } |
-} |