summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-10 12:58:26 +0100
committerMax Kellermann <max@musicpd.org>2016-11-10 12:58:26 +0100
commit22dcca9832e30c27630041bee867639e05ffd072 (patch)
tree7a03453cdc3881f5cfe09b878d6aa558d5ea5e67 /test
parentdb6c0d54cfc2eb9741b4e5c7634f41eecb2d4703 (diff)
util/Error: remove obsolete class
Diffstat (limited to 'test')
-rw-r--r--test/TestFs.cxx1
-rw-r--r--test/TestIcu.cxx1
-rw-r--r--test/WriteFile.cxx3
-rw-r--r--test/read_mixer.cxx1
-rw-r--r--test/run_gunzip.cxx1
-rw-r--r--test/run_storage.cxx1
-rw-r--r--test/test_rewind.cxx2
-rw-r--r--test/test_translate_song.cxx1
8 files changed, 0 insertions, 11 deletions
diff --git a/test/TestFs.cxx b/test/TestFs.cxx
index aa840f848..3719244a7 100644
--- a/test/TestFs.cxx
+++ b/test/TestFs.cxx
@@ -4,7 +4,6 @@
#include "config.h"
#include "fs/Glob.hxx"
-#include "util/Error.hxx"
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
diff --git a/test/TestIcu.cxx b/test/TestIcu.cxx
index 843b4c64e..4c9798d40 100644
--- a/test/TestIcu.cxx
+++ b/test/TestIcu.cxx
@@ -6,7 +6,6 @@
#include "lib/icu/Converter.hxx"
#include "util/AllocatedString.hxx"
#include "util/StringAPI.hxx"
-#include "util/Error.hxx"
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
diff --git a/test/WriteFile.cxx b/test/WriteFile.cxx
index 307d89c61..e5c9c0b2d 100644
--- a/test/WriteFile.cxx
+++ b/test/WriteFile.cxx
@@ -20,7 +20,6 @@
#include "config.h"
#include "fs/io/FileOutputStream.hxx"
#include "Log.hxx"
-#include "util/Error.hxx"
#include <unistd.h>
#include <errno.h>
@@ -32,8 +31,6 @@
static bool
Copy(OutputStream &dest, int src)
{
- Error error;
-
while (true) {
uint8_t buffer[8192];
ssize_t nbytes = read(src, buffer, sizeof(buffer));
diff --git a/test/read_mixer.cxx b/test/read_mixer.cxx
index ce45e863f..f50a7ad48 100644
--- a/test/read_mixer.cxx
+++ b/test/read_mixer.cxx
@@ -25,7 +25,6 @@
#include "Main.hxx"
#include "event/Loop.hxx"
#include "config/Block.hxx"
-#include "util/Error.hxx"
#include "Log.hxx"
#include <assert.h>
diff --git a/test/run_gunzip.cxx b/test/run_gunzip.cxx
index eb619b36d..6fcc0b0b9 100644
--- a/test/run_gunzip.cxx
+++ b/test/run_gunzip.cxx
@@ -22,7 +22,6 @@
#include "fs/io/FileReader.hxx"
#include "fs/io/StdioOutputStream.hxx"
#include "Log.hxx"
-#include "util/Error.hxx"
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/run_storage.cxx b/test/run_storage.cxx
index 81fb04cd3..aace0e0d1 100644
--- a/test/run_storage.cxx
+++ b/test/run_storage.cxx
@@ -23,7 +23,6 @@
#include "storage/Registry.hxx"
#include "storage/StorageInterface.hxx"
#include "storage/FileInfo.hxx"
-#include "util/Error.hxx"
#include <memory>
#include <stdexcept>
diff --git a/test/test_rewind.cxx b/test/test_rewind.cxx
index 882352a92..d7ae7c8c9 100644
--- a/test/test_rewind.cxx
+++ b/test/test_rewind.cxx
@@ -7,7 +7,6 @@
#include "input/InputStream.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
-#include "util/Error.hxx"
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
@@ -73,7 +72,6 @@ public:
CPPUNIT_ASSERT(!ris->KnownSize());
CPPUNIT_ASSERT_EQUAL(offset_type(0), ris->GetOffset());
- Error error;
char buffer[16];
size_t nbytes = ris->Read(buffer, 2);
CPPUNIT_ASSERT_EQUAL(size_t(2), nbytes);
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx
index 8b33a5c02..3b042b216 100644
--- a/test/test_translate_song.cxx
+++ b/test/test_translate_song.cxx
@@ -15,7 +15,6 @@
#include "Log.hxx"
#include "db/DatabaseSong.hxx"
#include "storage/plugins/LocalStorage.hxx"
-#include "util/Error.hxx"
#include "Mapper.hxx"
#include <cppunit/TestFixture.h>