Skip to content

Commit 2c0cc62

Browse files
committed
---
yaml --- r: 11485 b: refs/heads/master c: 4d03e4b h: refs/heads/master i: 11483: 12e21e0 v: v3
1 parent 0e4cc95 commit 2c0cc62

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c28c258f915f0ab46a51519a2b79bd42af383891
2+
refs/heads/master: 4d03e4b711c8aadb829ce8b26237c917ee04bbb7
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/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)