From 3392c99692bd47a59e2508867d484c55c7f54519 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 17 Dec 2022 08:19:11 +0100 Subject: [PATCH] nextcloud: Remove unused extension --- packages/nextcloud/lib/src/helpers.dart | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/nextcloud/lib/src/helpers.dart b/packages/nextcloud/lib/src/helpers.dart index e117d972..8145b983 100644 --- a/packages/nextcloud/lib/src/helpers.dart +++ b/packages/nextcloud/lib/src/helpers.dart @@ -2,13 +2,6 @@ part of '../nextcloud.dart'; -extension HttpClientResponseBody on HttpClientResponse { - Future get bodyBytes async => - Uint8List.fromList((await toList()).reduce((final value, final element) => [...value, ...element])); - - Future get body async => utf8.decode(await bodyBytes); -} - extension UserDetailsDisplayName on ProvisioningApiUserDetails { /// This is used to work around an API change that wasn't made for every endpoint /// See https://github.com/nextcloud/server/commit/5086335643b6181284ee50f57b95525002842992