Got rid of that unused and superfluous TokenSpace callback stuff.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17200 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-04-22 16:29:44 +00:00
parent 9b2a903688
commit 704c03b9e6
3 changed files with 9 additions and 26 deletions
+4 -10
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2001-2005, Haiku.
* Copyright 2001-2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -30,23 +30,17 @@
namespace BPrivate {
typedef void (*new_token_callback)(int16, void*);
typedef void (*remove_token_callback)(int16, void*);
typedef bool (*get_token_callback)(int16, void*);
class BTokenSpace : public BLocker {
public:
BTokenSpace();
~BTokenSpace();
int32 NewToken(int16 type, void* object,
new_token_callback callback = NULL);
int32 NewToken(int16 type, void* object);
void SetToken(int32 token, int16 type, void* object);
bool RemoveToken(int32 token, remove_token_callback callback = NULL);
bool RemoveToken(int32 token);
bool CheckToken(int32 token, int16 type) const;
status_t GetToken(int32 token, int16 type, void** object,
get_token_callback callback = NULL) const;
status_t GetToken(int32 token, int16 type, void** object) const;
private:
struct token_info {