diff options
Diffstat (limited to 'apps/JAWS/server/VFS_T.cpp')
-rw-r--r-- | apps/JAWS/server/VFS_T.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/apps/JAWS/server/VFS_T.cpp b/apps/JAWS/server/VFS_T.cpp deleted file mode 100644 index 19c45581ff5..00000000000 --- a/apps/JAWS/server/VFS_T.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#if !defined (VFS_T_C) -#define VFS_T_C - -template <class LOCK> -JAWS_VFS_Node_Bucket<LOCK>::JAWS_VFS_Node_Bucket (int size) - : bucket_ (size) -{ -} - -template <class LOCK> -JAWS_VFS_Node * -JAWS_VFS_Node_Bucket<LOCK>::find (char *URI) -{ - ACE_Guard<LOCK> g (this->lock_); - int found = -1; - - if (! this->bucket_.IsEmpty ()) - for (int i = 0; i < this->bucket_.Size (); i++) { - if (ACE_OS::strcmp (URI, this->bucket_[i]->URI ()) != 0) continue; - found = i; - break; - } - - if (found == -1) - { - JAWS_VFS_Node *new_node = new JAWS_VFS_Node (URI); - if (new_node == 0) - ACE_ERROR ((LM_ERROR, "%p.\n", "JAWS_VFS_Node")); - this->bucket_.Insert (new_node); - found = this->bucket_.Size () - 1; - } - - return this->bucket_[found]; -} - -#endif /* VFS_T_C */ - |