From 82337dec44347017ca04fe975e85e6d9e4edb635 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 11 May 2014 16:59:19 +0200 Subject: InputStream: add virtual destructor Replaces the method Close(). --- src/input/plugins/SmbclientInputPlugin.cxx | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/input/plugins/SmbclientInputPlugin.cxx') diff --git a/src/input/plugins/SmbclientInputPlugin.cxx b/src/input/plugins/SmbclientInputPlugin.cxx index c291f0608..07ffb83c4 100644 --- a/src/input/plugins/SmbclientInputPlugin.cxx +++ b/src/input/plugins/SmbclientInputPlugin.cxx @@ -149,13 +149,6 @@ input_smbclient_read(InputStream *is, void *ptr, size_t size, return s.Read(ptr, size, error); } -static void -input_smbclient_close(InputStream *is) -{ - SmbclientInputStream *s = (SmbclientInputStream *)is; - delete s; -} - static bool input_smbclient_eof(InputStream *is) { @@ -177,7 +170,6 @@ const InputPlugin input_plugin_smbclient = { input_smbclient_init, nullptr, input_smbclient_open, - input_smbclient_close, nullptr, nullptr, nullptr, -- cgit v1.2.3