aboutsummaryrefslogtreecommitdiff
path: root/kapi
diff options
context:
space:
mode:
Diffstat (limited to 'kapi')
-rw-r--r--kapi/kapi/filesystem.hpp4
-rw-r--r--kapi/kapi/filesystem/seek.hpp8
2 files changed, 1 insertions, 11 deletions
diff --git a/kapi/kapi/filesystem.hpp b/kapi/kapi/filesystem.hpp
index 78845a00..6a0cd6c2 100644
--- a/kapi/kapi/filesystem.hpp
+++ b/kapi/kapi/filesystem.hpp
@@ -71,11 +71,9 @@ namespace kapi::filesystem
//!
//! @param file_descriptor The file descriptor to seek.
//! @param offset The offset to seek to, relative to the origin.
- //! @param direction The direction to seek towards, relative to the origin.
//! @param origin The origing to seek relatively to.
//! @return The new position in the file on success, an error code otherwise.
- auto seek(size_t file_descriptor, kstd::bytes offset, seek_direction direction, seek_origin origin)
- -> kstd::result<kstd::bytes>;
+ auto seek(size_t file_descriptor, kstd::offset offset, seek_origin origin) -> kstd::result<kstd::bytes>;
//! Create a new directory at the specified path.
//!
diff --git a/kapi/kapi/filesystem/seek.hpp b/kapi/kapi/filesystem/seek.hpp
index f1006f31..42bee22d 100644
--- a/kapi/kapi/filesystem/seek.hpp
+++ b/kapi/kapi/filesystem/seek.hpp
@@ -17,14 +17,6 @@ namespace kapi::filesystem
end,
};
- enum struct seek_direction
- {
- //! seek forward from the origin.
- forward,
- //! seek backward from the origin.
- backward,
- };
-
} // namespace kapi::filesystem
#endif \ No newline at end of file