Skip to content

Commit dc4de7f

Browse files
committed
remove test in demo
1 parent 4dc8df8 commit dc4de7f

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

demo/include/blobstore.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ class BlobstoreClient {
2121
};
2222

2323
std::unique_ptr<BlobstoreClient> new_blobstore_client();
24-
std::unique_ptr<std::vector<const BlobstoreClient*>> foo(uint64_t n);
25-
std::unique_ptr<std::vector<const uint64_t*>> foo2(uint64_t n);
2624
} // namespace blobstore
2725
} // namespace org

demo/src/blobstore.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,5 @@ BlobMetadata BlobstoreClient::metadata(uint64_t blobid) const {
6666
std::unique_ptr<BlobstoreClient> new_blobstore_client() {
6767
return std::make_unique<BlobstoreClient>();
6868
}
69-
std::unique_ptr<std::vector<const BlobstoreClient*>> foo(uint64_t n) {
70-
auto v = std::make_unique<std::vector<const BlobstoreClient*>>();
71-
v->push_back(new BlobstoreClient());
72-
return v;
73-
}
74-
std::unique_ptr<std::vector<const uint64_t*>> foo2(uint64_t n) {
75-
auto v = std::make_unique<std::vector<const uint64_t*>>();
76-
return v;
77-
}
7869
} // namespace blobstore
7970
} // namespace org

demo/src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ mod ffi {
2323
fn put(&self, parts: &mut MultiBuf) -> u64;
2424
fn tag(&self, blobid: u64, tag: &str);
2525
fn metadata(&self, blobid: u64) -> BlobMetadata;
26-
fn foo(n: u64) -> UniquePtr<CxxVector<*const BlobstoreClient>>;
27-
fn foo2(n: u64) -> UniquePtr<CxxVector<*const u64>>;
2826
}
2927
}
3028

@@ -58,5 +56,4 @@ fn main() {
5856
// Read back the tags.
5957
let metadata = client.metadata(blobid);
6058
println!("tags = {:?}", metadata.tags);
61-
ffi::foo2(12);
6259
}

0 commit comments

Comments
 (0)