diff options
Diffstat (limited to 'Userland/Libraries/LibCore/TempFile.h')
-rw-r--r-- | Userland/Libraries/LibCore/TempFile.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Userland/Libraries/LibCore/TempFile.h b/Userland/Libraries/LibCore/TempFile.h deleted file mode 100644 index ac1743a165..0000000000 --- a/Userland/Libraries/LibCore/TempFile.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2020-2023, the SerenityOS developers. - * - * SPDX-License-Identifier: BSD-2-Clause - */ - -#pragma once - -#include <AK/Error.h> -#include <AK/NonnullOwnPtr.h> -#include <AK/String.h> - -namespace Core { - -class TempFile { - -public: - static ErrorOr<NonnullOwnPtr<TempFile>> create_temp_directory(); - static ErrorOr<NonnullOwnPtr<TempFile>> create_temp_file(); - - ~TempFile(); - - String const& path() const { return m_path; } - -private: - enum class Type { - Directory, - File - }; - - TempFile(Type type, String path) - : m_type(type) - , m_path(move(path)) - { - } - - Type m_type; - String m_path; -}; - -} |