Skip to content

Commit 7e8b977

Browse files
committed
---
yaml --- r: 14491 b: refs/heads/try c: 4d03e4b h: refs/heads/master i: 14489: baeeff5 14487: f950cda v: v3
1 parent cf3efb0 commit 7e8b977

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: c28c258f915f0ab46a51519a2b79bd42af383891
5+
refs/heads/try: 4d03e4b711c8aadb829ce8b26237c917ee04bbb7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rt/rust_internal.h

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -130,40 +130,6 @@ template <typename T> struct task_owned {
130130
}
131131
};
132132

133-
template<class T>
134-
class smart_ptr {
135-
T *p;
136-
137-
public:
138-
smart_ptr() : p(NULL) {};
139-
smart_ptr(T *p) : p(p) { if(p) { p->ref(); } }
140-
smart_ptr(const smart_ptr &sp) : p(sp.p) {
141-
if(p) { p->ref(); }
142-
}
143-
144-
~smart_ptr() {
145-
if(p) {
146-
p->deref();
147-
}
148-
}
149-
150-
T *operator=(T* p) {
151-
if(this->p) {
152-
this->p->deref();
153-
}
154-
if(p) {
155-
p->ref();
156-
}
157-
this->p = p;
158-
159-
return p;
160-
}
161-
162-
T *operator->() const { return p; };
163-
164-
operator T*() const { return p; }
165-
};
166-
167133
template <typename T> struct kernel_owned {
168134
inline void *operator new(size_t size, rust_kernel *kernel,
169135
const char *tag);

0 commit comments

Comments
 (0)