From 6b88025dda05cab4526783c80269fd740312980f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 31 Jan 2019 02:56:54 +0100 Subject: Remove the last remaining #ifndef SERENITY blocks. --- Kernel/FileDescriptor.cpp | 4 ---- Kernel/SyntheticFileSystem.cpp | 6 ------ 2 files changed, 10 deletions(-) (limited to 'Kernel') diff --git a/Kernel/FileDescriptor.cpp b/Kernel/FileDescriptor.cpp index d2b1fffcb4..17f6834ce2 100644 --- a/Kernel/FileDescriptor.cpp +++ b/Kernel/FileDescriptor.cpp @@ -129,10 +129,6 @@ off_t FileDescriptor::seek(off_t offset, int whence) break; case SEEK_CUR: newOffset = m_current_offset + offset; -#ifndef SERENITY - if (additionWouldOverflow(m_currentOffset, offset)) - return -EOVERFLOW; -#endif if (newOffset < 0) return -EINVAL; break; diff --git a/Kernel/SyntheticFileSystem.cpp b/Kernel/SyntheticFileSystem.cpp index 1e6c90655d..56117d9843 100644 --- a/Kernel/SyntheticFileSystem.cpp +++ b/Kernel/SyntheticFileSystem.cpp @@ -35,12 +35,6 @@ bool SynthFS::initialize() root->m_metadata.size = 0; root->m_metadata.mtime = mepoch; m_inodes.set(RootInodeIndex, move(root)); - -#ifndef SERENITY - addFile(createTextFile("file", String("I'm a synthetic file!\n").toByteBuffer(), 0100644)); - addFile(createTextFile("message", String("Hey! This isn't my bottle!\n").toByteBuffer(), 0100644)); - addFile(createGeneratedFile("lunk", [] { return String("/home/andreas/file1").toByteBuffer(); }, 00120777)); -#endif return true; } -- cgit v1.2.3