diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-04-08 00:44:48 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-04-08 00:44:48 +0200 |
| commit | 7ec2bda484072982e75666508863ef9903331191 (patch) | |
| tree | 38a8ef82921367a3643afb282d2cfd6b19124960 /Private/FSKit | |
| parent | dd9c90c0d7d65f4481b1072f11cbb81017382006 (diff) | |
Kernel/URL.cxx: Remove useless protocols for a kernel.
- remove IteratorInterface for NewFS, design change have been done.
Kernel/NewFS.cxx: Document code.
Diffstat (limited to 'Private/FSKit')
| -rw-r--r-- | Private/FSKit/NewFSIteratorInterface.hxx | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/Private/FSKit/NewFSIteratorInterface.hxx b/Private/FSKit/NewFSIteratorInterface.hxx deleted file mode 100644 index d0d35c76..00000000 --- a/Private/FSKit/NewFSIteratorInterface.hxx +++ /dev/null @@ -1,51 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#pragma once - -#include <FSKit/IndexableProperty.hxx> -#include <NewKit/MutableArray.hpp> - -namespace NewOS { -namespace Indexer { -class NewFSIteratorInterface; - -using IndexElement = VoidPtr; - -/// -/// @name NewFSIteratorInterface -/// @brief Stores relevant information for file indexing. -/// - -class NewFSIteratorInterface { - public: - explicit NewFSIteratorInterface() = default; - virtual ~NewFSIteratorInterface() = default; - - public: - NEWOS_COPY_DEFAULT(NewFSIteratorInterface); - - public: - void Append(IndexableProperty& indexProp) { fProps.Add(indexProp); } - - MutableArray<IndexableProperty>& Leak() { return fProps; } - - Boolean Find(IndexProperty& filters) { - for (size_t i = 0; i < fProps.Count(); ++i) { - if (StringBuilder::Equals(fProps[i].Leak().LeakProperty().Path, - filters.Path)) { - return i; - } - } - - return 0; - } - - private: - MutableArray<IndexableProperty> fProps; -}; -} // namespace Indexer -} // namespace NewOS |
