summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-31 02:56:54 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-31 02:56:54 +0100
commit6b88025dda05cab4526783c80269fd740312980f (patch)
treeb552a645e9da02f19c23061476db8123fc3fbc11 /Kernel
parent2c6a3f1907aa63a459f50dfb872f6163b5305296 (diff)
downloadserenity-6b88025dda05cab4526783c80269fd740312980f.zip
Remove the last remaining #ifndef SERENITY blocks.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/FileDescriptor.cpp4
-rw-r--r--Kernel/SyntheticFileSystem.cpp6
2 files changed, 0 insertions, 10 deletions
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;
}