1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 18:28:10 +00:00

Kernel: Remove validate_read_str() as nothing uses it anymore :^)

This commit is contained in:
Andreas Kling 2020-01-11 10:57:38 +01:00
parent f5092b1c7e
commit 0ca6d6c8d2
2 changed files with 0 additions and 8 deletions

View file

@ -2103,13 +2103,6 @@ bool Process::validate_read_from_kernel(VirtualAddress vaddr, ssize_t size) cons
return MM.validate_kernel_read(*this, vaddr, size);
}
bool Process::validate_read_str(const char* str)
{
if (!validate_read(str, 1))
return false;
return validate_read(str, strlen(str) + 1);
}
bool Process::validate_read(const void* address, ssize_t size) const
{
ASSERT(size >= 0);