From fe2477b25c3565343b984d1fec38c1c25ac08c17 Mon Sep 17 00:00:00 2001 From: Carlos Fonseca M Date: Mon, 25 Nov 2019 05:02:00 -0600 Subject: [PATCH] Remove unused members FreeString and FreeMetadata are both private usage only. --- native_client/dotnet/DeepSpeechClient/DeepSpeech.cs | 12 ------------ .../DeepSpeechClient/Interfaces/IDeepSpeech.cs | 9 --------- 2 files changed, 21 deletions(-) diff --git a/native_client/dotnet/DeepSpeechClient/DeepSpeech.cs b/native_client/dotnet/DeepSpeechClient/DeepSpeech.cs index a674c699..dedd5e4d 100644 --- a/native_client/dotnet/DeepSpeechClient/DeepSpeech.cs +++ b/native_client/dotnet/DeepSpeechClient/DeepSpeech.cs @@ -208,18 +208,6 @@ namespace DeepSpeechClient NativeImp.DS_FreeStream(ref _streamingStatePP); } - /// - /// Free a DeepSpeech allocated string - /// - public unsafe void FreeString(IntPtr intPtr) - { - NativeImp.DS_FreeString(intPtr); - } - - /// - /// Free a DeepSpeech allocated Metadata struct - /// - public unsafe void FreeMetadata(IntPtr intPtr) { NativeImp.DS_FreeMetadata(intPtr); } diff --git a/native_client/dotnet/DeepSpeechClient/Interfaces/IDeepSpeech.cs b/native_client/dotnet/DeepSpeechClient/Interfaces/IDeepSpeech.cs index c47c25a1..4dbcf2aa 100644 --- a/native_client/dotnet/DeepSpeechClient/Interfaces/IDeepSpeech.cs +++ b/native_client/dotnet/DeepSpeechClient/Interfaces/IDeepSpeech.cs @@ -66,15 +66,6 @@ namespace DeepSpeechClient.Interfaces /// unsafe void FreeStream(); - /// - /// Free a DeepSpeech allocated string - /// - unsafe void FreeString(IntPtr intPtr); - - /// - /// Free a DeepSpeech allocated Metadata struct - /// - unsafe void FreeMetadata(IntPtr intPtr); /// /// Creates a new streaming inference state.