forked from Bananymous/banan-os
All: Clear lines with only whitspace in them
This commit is contained in:
parent
d77f455065
commit
720bc418a6
|
@ -28,7 +28,6 @@ namespace BAN::Formatter
|
|||
static size_t parse_format_and_print_argument(F putc, const char* format, T&& arg);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
IMPLEMENTATION
|
||||
|
|
|
@ -85,8 +85,6 @@ namespace BAN
|
|||
friend class HashSet<T, HASH>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
template<typename T, typename HASH>
|
||||
HashSet<T, HASH>::HashSet(const HashSet<T, HASH>& other)
|
||||
: m_buckets(other.m_buckets)
|
||||
|
@ -231,8 +229,6 @@ namespace BAN
|
|||
return m_buckets[index];
|
||||
}
|
||||
|
||||
|
||||
|
||||
template<typename T, typename HASH>
|
||||
HashSetIterator<T, HASH>& HashSetIterator<T, HASH>::operator++()
|
||||
{
|
||||
|
|
|
@ -114,8 +114,6 @@ namespace BAN
|
|||
friend class LinkedListIterator<T, !CONST>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
template<typename T>
|
||||
LinkedList<T>& LinkedList<T>::operator=(const LinkedList<T>& other)
|
||||
{
|
||||
|
@ -293,8 +291,6 @@ namespace BAN
|
|||
return node;
|
||||
}
|
||||
|
||||
|
||||
|
||||
template<typename T, bool CONST>
|
||||
template<bool C>
|
||||
LinkedListIterator<T, CONST>::LinkedListIterator(const LinkedListIterator<T, C>& other, enable_if_t<C == CONST || !C>*)
|
||||
|
|
|
@ -280,7 +280,6 @@ namespace LibELF
|
|||
return *(const Elf64SectionHeader*)(m_data.data() + file_header.e_shoff + file_header.e_shentsize * index);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
32 bit ELF
|
||||
|
@ -404,5 +403,4 @@ namespace LibELF
|
|||
return *(const Elf32SectionHeader*)(m_data.data() + file_header.e_shoff + file_header.e_shentsize * index);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -78,7 +78,6 @@ namespace LibELF
|
|||
Elf32Word p_align;
|
||||
};
|
||||
|
||||
|
||||
using Elf64Addr = uint64_t;
|
||||
using Elf64Off = uint64_t;
|
||||
using Elf64Half = uint16_t;
|
||||
|
|
|
@ -207,7 +207,6 @@ namespace Kernel
|
|||
unmap_page(page);
|
||||
}
|
||||
|
||||
|
||||
uint8_t MMU::get_page_flags(vaddr_t address) const
|
||||
{
|
||||
uint32_t pdpte = (address & 0xC0000000) >> 30;
|
||||
|
|
|
@ -113,8 +113,6 @@ void __cxa_finalize(void *f)
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
namespace __cxxabiv1
|
||||
{
|
||||
/* guard variables */
|
||||
|
|
|
@ -12,7 +12,6 @@ namespace Kernel
|
|||
return BAN::RefPtr<ZeroDevice>::adopt(result);
|
||||
}
|
||||
|
||||
|
||||
BAN::ErrorOr<size_t> ZeroDevice::read_impl(off_t, void* buffer, size_t bytes)
|
||||
{
|
||||
memset(buffer, 0, bytes);
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
namespace Kernel
|
||||
{
|
||||
|
||||
|
||||
OpenFileDescriptorSet::OpenFileDescriptorSet(const Credentials& credentials)
|
||||
: m_credentials(credentials)
|
||||
{
|
||||
|
|
|
@ -57,7 +57,6 @@ VesaTerminalDriver* VesaTerminalDriver::create()
|
|||
return driver;
|
||||
}
|
||||
|
||||
|
||||
VesaTerminalDriver::~VesaTerminalDriver()
|
||||
{
|
||||
PageTable::kernel().unmap_range(m_address, m_pitch * m_height);
|
||||
|
|
|
@ -25,7 +25,6 @@ namespace Kernel
|
|||
memcpy((void*)rsp, (void*)&value, sizeof(uintptr_t));
|
||||
}
|
||||
|
||||
|
||||
Thread::TerminateBlocker::TerminateBlocker(Thread& thread)
|
||||
: m_thread(thread)
|
||||
{
|
||||
|
|
|
@ -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* strerrordesc_np(int error);
|
||||
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
@ -87,7 +87,6 @@ struct stat
|
|||
#define UTIME_NOW 1000000001
|
||||
#define UTIME_OMIT 1000000002
|
||||
|
||||
|
||||
int chmod(const char* path, mode_t mode);
|
||||
int fchmod(int fildes, mode_t mode);
|
||||
int fchmodat(int fd, const char* path, mode_t mode, int flag);
|
||||
|
|
|
@ -468,4 +468,3 @@ extern "C" int printf_impl(const char* format, va_list arguments, int (*putc_fun
|
|||
|
||||
return written;
|
||||
}
|
||||
|
||||
|
|
|
@ -205,7 +205,6 @@ void free(void* ptr)
|
|||
syscall(SYS_FREE, ptr);
|
||||
}
|
||||
|
||||
|
||||
// Constants and algorithm from https://en.wikipedia.org/wiki/Permuted_congruential_generator
|
||||
|
||||
static uint64_t s_rand_state = 0x4d595df4d0f33173;
|
||||
|
|
|
@ -273,7 +273,6 @@ const char* strerrordesc_np(int error)
|
|||
return "Unknown error";
|
||||
}
|
||||
|
||||
|
||||
size_t strlen(const char* str)
|
||||
{
|
||||
size_t len = 0;
|
||||
|
|
Loading…
Reference in New Issue