From f9841fd473d2b8124d4a4f39387a250748617983 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Mon, 6 Mar 2023 02:52:34 +0700 Subject: [PATCH] Remove unnecessary text type conversion in `DBAPI` --- sources/Data/Database/DBAPI.uc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sources/Data/Database/DBAPI.uc b/sources/Data/Database/DBAPI.uc index 0e121f7..1ca767e 100644 --- a/sources/Data/Database/DBAPI.uc +++ b/sources/Data/Database/DBAPI.uc @@ -1,7 +1,7 @@ /** * API that provides methods for creating/destroying and managing available * databases. - * Copyright 2021-2022 Anton Tarasenko + * Copyright 2021-2023 Anton Tarasenko *------------------------------------------------------------------------------ * This file is part of Acedia. * @@ -55,7 +55,6 @@ public final function Database Load(BaseText databaseLink) { local Parser parser; local Database result; - local Text immutableDatabaseName; local MutableText databaseName; if (databaseLink == none) { @@ -71,11 +70,9 @@ public final function Database Load(BaseText databaseLink) parser.FreeSelf(); return none; } - immutableDatabaseName = databaseName.Copy(); - result = LoadLocal(immutableDatabaseName); + result = LoadLocal(databaseName); parser.FreeSelf(); databaseName.FreeSelf(); - immutableDatabaseName.FreeSelf(); return result; }