All: Clear lines with only whitspace in them

This commit is contained in:
Bananymous 2023-09-09 22:52:03 +03:00
parent d77f455065
commit 720bc418a6
67 changed files with 95 additions and 119 deletions

View File

@ -28,7 +28,6 @@ namespace BAN::Formatter
static size_t parse_format_and_print_argument(F putc, const char* format, T&& arg); static size_t parse_format_and_print_argument(F putc, const char* format, T&& arg);
} }
/* /*
IMPLEMENTATION IMPLEMENTATION

View File

@ -85,8 +85,6 @@ namespace BAN
friend class HashSet<T, HASH>; friend class HashSet<T, HASH>;
}; };
template<typename T, typename HASH> template<typename T, typename HASH>
HashSet<T, HASH>::HashSet(const HashSet<T, HASH>& other) HashSet<T, HASH>::HashSet(const HashSet<T, HASH>& other)
: m_buckets(other.m_buckets) : m_buckets(other.m_buckets)
@ -231,8 +229,6 @@ namespace BAN
return m_buckets[index]; return m_buckets[index];
} }
template<typename T, typename HASH> template<typename T, typename HASH>
HashSetIterator<T, HASH>& HashSetIterator<T, HASH>::operator++() HashSetIterator<T, HASH>& HashSetIterator<T, HASH>::operator++()
{ {

View File

@ -114,8 +114,6 @@ namespace BAN
friend class LinkedListIterator<T, !CONST>; friend class LinkedListIterator<T, !CONST>;
}; };
template<typename T> template<typename T>
LinkedList<T>& LinkedList<T>::operator=(const LinkedList<T>& other) LinkedList<T>& LinkedList<T>::operator=(const LinkedList<T>& other)
{ {
@ -293,8 +291,6 @@ namespace BAN
return node; return node;
} }
template<typename T, bool CONST> template<typename T, bool CONST>
template<bool C> template<bool C>
LinkedListIterator<T, CONST>::LinkedListIterator(const LinkedListIterator<T, C>& other, enable_if_t<C == CONST || !C>*) LinkedListIterator<T, CONST>::LinkedListIterator(const LinkedListIterator<T, C>& other, enable_if_t<C == CONST || !C>*)

View File

@ -280,7 +280,6 @@ namespace LibELF
return *(const Elf64SectionHeader*)(m_data.data() + file_header.e_shoff + file_header.e_shentsize * index); return *(const Elf64SectionHeader*)(m_data.data() + file_header.e_shoff + file_header.e_shentsize * index);
} }
/* /*
32 bit ELF 32 bit ELF
@ -404,5 +403,4 @@ namespace LibELF
return *(const Elf32SectionHeader*)(m_data.data() + file_header.e_shoff + file_header.e_shentsize * index); return *(const Elf32SectionHeader*)(m_data.data() + file_header.e_shoff + file_header.e_shentsize * index);
} }
} }

View File

@ -78,7 +78,6 @@ namespace LibELF
Elf32Word p_align; Elf32Word p_align;
}; };
using Elf64Addr = uint64_t; using Elf64Addr = uint64_t;
using Elf64Off = uint64_t; using Elf64Off = uint64_t;
using Elf64Half = uint16_t; using Elf64Half = uint16_t;

View File

@ -207,7 +207,6 @@ namespace Kernel
unmap_page(page); unmap_page(page);
} }
uint8_t MMU::get_page_flags(vaddr_t address) const uint8_t MMU::get_page_flags(vaddr_t address) const
{ {
uint32_t pdpte = (address & 0xC0000000) >> 30; uint32_t pdpte = (address & 0xC0000000) >> 30;

View File

@ -113,8 +113,6 @@ void __cxa_finalize(void *f)
}; };
}; };
namespace __cxxabiv1 namespace __cxxabiv1
{ {
/* guard variables */ /* guard variables */

View File

@ -12,7 +12,6 @@ namespace Kernel
return BAN::RefPtr<ZeroDevice>::adopt(result); return BAN::RefPtr<ZeroDevice>::adopt(result);
} }
BAN::ErrorOr<size_t> ZeroDevice::read_impl(off_t, void* buffer, size_t bytes) BAN::ErrorOr<size_t> ZeroDevice::read_impl(off_t, void* buffer, size_t bytes)
{ {
memset(buffer, 0, bytes); memset(buffer, 0, bytes);

View File

@ -7,7 +7,6 @@
namespace Kernel namespace Kernel
{ {
OpenFileDescriptorSet::OpenFileDescriptorSet(const Credentials& credentials) OpenFileDescriptorSet::OpenFileDescriptorSet(const Credentials& credentials)
: m_credentials(credentials) : m_credentials(credentials)
{ {

View File

@ -57,7 +57,6 @@ VesaTerminalDriver* VesaTerminalDriver::create()
return driver; return driver;
} }
VesaTerminalDriver::~VesaTerminalDriver() VesaTerminalDriver::~VesaTerminalDriver()
{ {
PageTable::kernel().unmap_range(m_address, m_pitch * m_height); PageTable::kernel().unmap_range(m_address, m_pitch * m_height);

View File

@ -25,7 +25,6 @@ namespace Kernel
memcpy((void*)rsp, (void*)&value, sizeof(uintptr_t)); memcpy((void*)rsp, (void*)&value, sizeof(uintptr_t));
} }
Thread::TerminateBlocker::TerminateBlocker(Thread& thread) Thread::TerminateBlocker::TerminateBlocker(Thread& thread)
: m_thread(thread) : m_thread(thread)
{ {

View File

@ -49,7 +49,6 @@ size_t strxfrm_l(char* __restrict s1, const char* __restrict s2, size_t n, local
const char* strerrorname_np(int error); const char* strerrorname_np(int error);
const char* strerrordesc_np(int error); const char* strerrordesc_np(int error);
__END_DECLS __END_DECLS
#endif #endif

View File

@ -87,7 +87,6 @@ struct stat
#define UTIME_NOW 1000000001 #define UTIME_NOW 1000000001
#define UTIME_OMIT 1000000002 #define UTIME_OMIT 1000000002
int chmod(const char* path, mode_t mode); int chmod(const char* path, mode_t mode);
int fchmod(int fildes, mode_t mode); int fchmod(int fildes, mode_t mode);
int fchmodat(int fd, const char* path, mode_t mode, int flag); int fchmodat(int fd, const char* path, mode_t mode, int flag);

View File

@ -468,4 +468,3 @@ extern "C" int printf_impl(const char* format, va_list arguments, int (*putc_fun
return written; return written;
} }

View File

@ -205,7 +205,6 @@ void free(void* ptr)
syscall(SYS_FREE, ptr); syscall(SYS_FREE, ptr);
} }
// Constants and algorithm from https://en.wikipedia.org/wiki/Permuted_congruential_generator // Constants and algorithm from https://en.wikipedia.org/wiki/Permuted_congruential_generator
static uint64_t s_rand_state = 0x4d595df4d0f33173; static uint64_t s_rand_state = 0x4d595df4d0f33173;

View File

@ -273,7 +273,6 @@ const char* strerrordesc_np(int error)
return "Unknown error"; return "Unknown error";
} }
size_t strlen(const char* str) size_t strlen(const char* str)
{ {
size_t len = 0; size_t len = 0;