From 678828b56fa6d14f09ebb352d8bd59f2dac8bfe3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Sep 2023 09:42:37 +0200 Subject: [PATCH] io/FileOutputStream: remove obsolete `maybe_unused` --- src/io/FileOutputStream.cxx | 2 +- src/io/FileOutputStream.hxx | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/io/FileOutputStream.cxx b/src/io/FileOutputStream.cxx index cd9cc667f..41bfed299 100644 --- a/src/io/FileOutputStream.cxx +++ b/src/io/FileOutputStream.cxx @@ -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 */ diff --git a/src/io/FileOutputStream.hxx b/src/io/FileOutputStream.hxx index da79c92bd..5555e083b 100644 --- a/src/io/FileOutputStream.hxx +++ b/src/io/FileOutputStream.hxx @@ -1,14 +1,13 @@ // SPDX-License-Identifier: BSD-2-Clause // author: Max Kellermann -#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 @@ -190,5 +189,3 @@ private: void RenameOrThrow(Path old_path, Path new_path) const; void Delete(Path delete_path) const noexcept; }; - -#endif