mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:22:45 +00:00 
			
		
		
		
	LibJS: Remove now-unused ThrowableFormat header
The one place this was used now uses the fallible String::formatted.
This commit is contained in:
		
							parent
							
								
									9f78e8728a
								
							
						
					
					
						commit
						bb4c7b6a35
					
				
					 1 changed files with 0 additions and 28 deletions
				
			
		|  | @ -1,28 +0,0 @@ | |||
| /*
 | ||||
|  * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org> | ||||
|  * | ||||
|  * SPDX-License-Identifier: BSD-2-Clause | ||||
|  */ | ||||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| #include <AK/CheckedFormatString.h> | ||||
| #include <AK/DeprecatedString.h> | ||||
| #include <AK/Format.h> | ||||
| #include <LibJS/Runtime/Completion.h> | ||||
| #include <LibJS/Runtime/ErrorTypes.h> | ||||
| #include <LibJS/Runtime/VM.h> | ||||
| 
 | ||||
| namespace JS { | ||||
| 
 | ||||
| template<typename... Args> | ||||
| ThrowCompletionOr<DeprecatedString> deprecated_format(VM& vm, CheckedFormatString<Args...>&& fmtstr, Args const&... args) | ||||
| { | ||||
|     StringBuilder builder; | ||||
|     AK::VariadicFormatParams<AK::AllowDebugOnlyFormatters::No, Args...> parameters { args... }; | ||||
| 
 | ||||
|     TRY_OR_THROW_OOM(vm, vformat(builder, fmtstr.view(), parameters)); | ||||
|     return builder.to_deprecated_string(); | ||||
| } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn