Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/stored/backends/unix_tape_device.cc')
-rw-r--r--core/src/stored/backends/unix_tape_device.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/core/src/stored/backends/unix_tape_device.cc b/core/src/stored/backends/unix_tape_device.cc
index e0cfb8844..b7b62f771 100644
--- a/core/src/stored/backends/unix_tape_device.cc
+++ b/core/src/stored/backends/unix_tape_device.cc
@@ -61,17 +61,7 @@ unix_tape_device::unix_tape_device()
class Backend : public BackendInterface {
public:
- Device* GetDevice(JobControlRecord* jcr, DeviceType device_type) override
- {
- switch (device_type) {
- case DeviceType::B_TAPE_DEV:
- return new unix_tape_device;
- default:
- Jmsg(jcr, M_FATAL, 0, _("Request for unknown devicetype: %d\n"),
- device_type);
- return nullptr;
- }
- }
+ Device* GetDevice() override { return new unix_tape_device; }
};
#ifdef HAVE_DYNAMIC_SD_BACKENDS