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

Remove the last remaining #ifndef SERENITY blocks.

This commit is contained in:
Andreas Kling 2019-01-31 02:56:54 +01:00
parent 2c6a3f1907
commit 6b88025dda
2 changed files with 0 additions and 10 deletions

View file

@ -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;

View file

@ -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;
}