io/FileOutputStream: remove obsolete `maybe_unused`

This commit is contained in:
Max Kellermann 2023-09-12 09:42:37 +02:00
parent 9e802ad721
commit 678828b56f
2 changed files with 3 additions and 6 deletions

View File

@ -187,7 +187,7 @@ OpenTempFile(FileDescriptor directory_fd,
#endif /* HAVE_O_TMPFILE */
inline void
FileOutputStream::OpenCreate([[maybe_unused]] bool visible)
FileOutputStream::OpenCreate(bool visible)
{
#ifdef HAVE_O_TMPFILE
/* try Linux's O_TMPFILE first */

View File

@ -1,14 +1,13 @@
// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
#ifndef FILE_OUTPUT_STREAM_HXX
#define FILE_OUTPUT_STREAM_HXX
#pragma once
#include "OutputStream.hxx"
#include "fs/AllocatedPath.hxx"
#ifndef _WIN32
#include "io/FileDescriptor.hxx"
#include "FileDescriptor.hxx"
#endif
#include <cassert>
@ -190,5 +189,3 @@ private:
void RenameOrThrow(Path old_path, Path new_path) const;
void Delete(Path delete_path) const noexcept;
};
#endif