1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:37:35 +00:00

Everywhere: Remove empty line after function body opening curly brace

This commit is contained in:
Linus Groh 2021-04-25 20:20:00 +02:00
parent 2d6be48c6f
commit dbe72fd962
25 changed files with 0 additions and 27 deletions

View file

@ -191,7 +191,6 @@ static String gethostbyaddr_name_buffer;
hostent* gethostbyaddr(const void* addr, socklen_t addr_size, int type)
{
if (type != AF_INET) {
errno = EAFNOSUPPORT;
return nullptr;

View file

@ -12,7 +12,6 @@ extern "C" {
int ptrace(int request, pid_t tid, void* addr, int data)
{
// PT_PEEK needs special handling since the syscall wrapper
// returns the peeked value as an int, which can be negative because of the cast.
// When using PT_PEEK, the user can check if an error occurred

View file

@ -84,7 +84,6 @@ void DateTime::set_time(unsigned year, unsigned month, unsigned day, unsigned ho
String DateTime::to_string(const String& format) const
{
const char wday_short_names[7][4] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
};

View file

@ -325,7 +325,6 @@ Result<void, File::CopyError> File::copy_file_or_directory(const String& dst_pat
Result<void, File::CopyError> File::copy_file(const String& dst_path, const struct stat& src_stat, File& source)
{
int dst_fd = creat(dst_path.characters(), 0666);
if (dst_fd < 0) {
if (errno != EISDIR)

View file

@ -31,7 +31,6 @@ LocalSocket::LocalSocket(int fd, Object* parent)
LocalSocket::LocalSocket(Object* parent)
: Socket(Socket::Type::Local, parent)
{
#ifdef SOCK_NONBLOCK
int fd = socket(AF_LOCAL, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
#else

View file

@ -288,7 +288,6 @@ void AESCipher::encrypt_block(const AESCipherBlock& in, AESCipherBlock& out)
void AESCipher::decrypt_block(const AESCipherBlock& in, AESCipherBlock& out)
{
u32 s0, s1, s2, s3, t0, t1, t2, t3;
size_t r { 0 };

View file

@ -185,7 +185,6 @@ private:
template<typename Callback>
void DebugSession::run(DesiredInitialDebugeeState initial_debugee_state, Callback callback)
{
enum class State {
FirstIteration,
FreeRun,

View file

@ -504,7 +504,6 @@ TextPosition EditingEngine::find_end_of_next_word()
void EditingEngine::move_to_end_of_next_word()
{
m_editor->set_cursor(find_end_of_next_word());
}

View file

@ -124,7 +124,6 @@ void VimCursor::move_backwards()
void VimMotion::add_key_code(KeyCode key, [[maybe_unused]] bool ctrl, bool shift, [[maybe_unused]] bool alt)
{
if (is_complete())
return;

View file

@ -1088,7 +1088,6 @@ void Editor::cleanup_suggestions()
bool Editor::search(const StringView& phrase, bool allow_empty, bool from_beginning)
{
int last_matching_offset = -1;
bool found = false;

View file

@ -84,7 +84,6 @@ const CompletionSuggestion& SuggestionManager::suggest()
void SuggestionManager::set_current_suggestion_initiation_index(size_t index)
{
if (m_last_shown_suggestion_display_length)
m_last_shown_suggestion.start_index = index - m_next_suggestion_static_offset - m_last_shown_suggestion_display_length;
else

View file

@ -210,7 +210,6 @@ ALWAYS_INLINE ExecutionResult OpCode_FailForks::execute(const MatchInput& input,
ALWAYS_INLINE ExecutionResult OpCode_Jump::execute(const MatchInput&, MatchState& state, MatchOutput&) const
{
state.instruction_position += offset();
return ExecutionResult::Continue;
}