File tree Expand file tree Collapse file tree 2 files changed +1
-35
lines changed Expand file tree Collapse file tree 2 files changed +1
-35
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: c28c258f915f0ab46a51519a2b79bd42af383891
5
+ refs/heads/try: 4d03e4b711c8aadb829ce8b26237c917ee04bbb7
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -130,40 +130,6 @@ template <typename T> struct task_owned {
130
130
}
131
131
};
132
132
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
-
167
133
template <typename T> struct kernel_owned {
168
134
inline void *operator new (size_t size, rust_kernel *kernel,
169
135
const char *tag);
You can’t perform that action at this time.
0 commit comments