From 521cce3d04d9b2bba3257cf60d9589ad4cb9280a Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Fri, 17 Jan 2025 00:39:01 +0000 Subject: [PATCH] Remove prev_path --- applications/main/archive/views/archive_browser_view.c | 3 --- applications/main/archive/views/archive_browser_view.h | 1 - 2 files changed, 4 deletions(-) diff --git a/applications/main/archive/views/archive_browser_view.c b/applications/main/archive/views/archive_browser_view.c index 60712235e..3580ec8bb 100644 --- a/applications/main/archive/views/archive_browser_view.c +++ b/applications/main/archive/views/archive_browser_view.c @@ -105,7 +105,6 @@ static void archive_update_formatted_path(ArchiveBrowserViewModel* model) { } } - furi_string_set(browser->prev_path, browser->path); browser->path_changed = false; } @@ -660,7 +659,6 @@ ArchiveBrowserView* browser_alloc(void) { browser->scroll_timer = furi_timer_alloc(browser_scroll_timer, FuriTimerTypePeriodic, browser); browser->path = furi_string_alloc_set(archive_get_default_path(TAB_DEFAULT)); - browser->prev_path = furi_string_alloc(); browser->formatted_path = furi_string_alloc(); browser->path_changed = true; @@ -696,7 +694,6 @@ void browser_free(ArchiveBrowserView* browser) { false); furi_string_free(browser->path); - furi_string_free(browser->prev_path); furi_string_free(browser->formatted_path); view_free(browser->view); diff --git a/applications/main/archive/views/archive_browser_view.h b/applications/main/archive/views/archive_browser_view.h index b3b233052..b5db1b96d 100644 --- a/applications/main/archive/views/archive_browser_view.h +++ b/applications/main/archive/views/archive_browser_view.h @@ -89,7 +89,6 @@ struct ArchiveBrowserView { ArchiveBrowserViewCallback callback; void* context; FuriString* path; - FuriString* prev_path; FuriString* formatted_path; bool path_changed; InputKey last_tab_switch_dir;